Visio using wrong measurement units

A

asc4john

I am generating drawings in Visio from data stored in an Access
database using VBA, this is being done from Access not Visio. Access
has the info and does all the computing, Visio just draws. No matter
how I set up the template file in Visio, when I draw a line or any
other primative the scaling is wrong. The template file I use is
meteric but when I draw a line, it seems that Visio draws the line in
inches. Is there some other setting I need to change? Or is Visio
unable to use other measurement units instead of inches when doing this
kind of thing? I can convert everything to inches or use Cell formulas
to alter the shape after it is drawen but it would be alot easier and
faster if Visio could draw in millimeters not inches.
 
A

Al Edlund

the internal measurements are in inches. when you write your code you tell
visio what form the number is that you are having it create.
al
 
A

asc4john

So, when I code page.DrawLine 100,100,300,300 Visio takes that 300 or
100 as inches and puts in (300*25.4)mm? So if I want Visio to draw
in millimeters on my template i need to do
page.DrawLine(100/25.4, 100/25.4,300/25.4,300/25.4)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top