how can I check a shape's angle?

F

Francis

I have a closed shape. two of the corners have an angle, (others are 90). How
can I check the value of those angles, say from vb.net? or how can I check
wich line is the longer one of the two oposite lines?:
the sahe is something like this:
_______
| \
| \
|________\
 
C

Chris Roth [MVP]

If you want to do it programmatically, you'd need to analyze the Geometry
sections using something like the automation properties: CellsSRC( s, r,
c).ResultIU to get at the x- and -y coordinates of the shape.

If you have Snap to Vertices turned on (Tools > Snap & Glue...) then you can
try this trick:

1. Get the line tool
2. Snap a line to the two vertices on your shape.
3. Switch back to the pointer tool (Ctrl + 1).
4. With your new line selected, look at the status bar, lower-left, and your
new line's angle will be displayed there.


--
Hope this helps,

Chris Roth
Visio MVP

www.wanderkind.com/visio
 

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