Hi IMeng,
If your shape will have a limited number of connection points (say less than
100), you can pre-build them into the shape, then set their location based
on the value in the custom property.
You can't hide connection points using the ShapeSheet, but you *can* stack
them on top of each other, which effectively hides them.
So say your shape needs 20 points. The other 80 would be stacked under
connection point #1. If the user the types in 50, another 30 will be pulled
into use. Smart formulas in the ShapeSheet will determine where to locate
the points, how to resize the shape, how to draw geometry, etc. This can be
complicated, but sometimes it's worth not having to link to VBA code.
If your number of points is open-ended, it's better to programmatically add
and remove connection point rows in the ShapeSheet.
--
Hope this helps,
Chris Roth
Visio MVP
Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
My shape will be limited in number of connection points. Max number 100.