shape length

B

Brian

Simple question I think but I'm having trouble finding an answer. If I have a
1D shape, from code, how do I get the length? I've tried:

shp.LengthIU

But this doesn't return the length, it returns (help says) the perimeter?
Shouldn't this property be named "PerimeterIU"?

Thanks,
Brian
 
M

Mark Nelson [MS]

LengthIU returns the total length of the geometric paths on the shape. If
you want the shortest distance between Begin and End, you can use a
Pythagorean Theorem formula:

ShortestLength = SQRT(Width^2+Height^2)
 
B

Brian

Thanks for the reply Mark. I for some reason forgot that a 1D shape still has
a Width cell, which is what I used:

shp.Cells("Width").ResultIU
 

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