Drop Shape XY Unit

A

Arthur Yuen

Dear all,

I am using Visio2002.
I use VBA to drop a shape in X and Y coordinate.
What is the default measurement unit? in mm/inch?
How can I change the default measurement unit using VBA?

Thanks,
Arthur
 
J

JuneTheSecond

Unit used in inside is inch. If you would like to chage the unit into mm, you
are recommended to multiply or devide by 25.4.
 
C

Chris [Visio MVP]

Visio always works internally in inches. There are functions for setting
cell-results in other units, but the Drop function takes inches only.

You can simply multiply x and y by 25.4 to get millimeters.

When setting cell results for shapes, try the Result function. You can
specify the units there, ie:

shp.Cells("Width").Result("mm") = 25
shp.Cells("Width").Result(Visio.visUnitCodes.visUnitsInches) = 25
 

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