Is there anyway in microstation to get geometric extents of an element? doesn't matter what it is, text, shape, line, etc... I just want to know what is the boundary of that element?
If not, how do you get all vertices of a ComplexShapeElement? I keep getting BAD ELEMENT erro when i try this:
dim pnt as point3d
pnt = oComplexShape.Vertex(1)
The shape is actually rectangular and should have 4 vertices...
Thanks,
Viktor.
Unknown said:Is there anyway in microstation to get geometric extents of an element?
Each element has a range, which you obtain using the Element.Range property. Note that range is a box around the element — it's not a precise measurement of the element extent — and will change with the element's rotation.
Unknown said:How do you get all vertices of a ComplexShapeElement?
You need to enumerate the elements that make up the complex shape, then get the vertices of each element. Since a complex shape consists of ChainableElements, you need to decide how to handle certain elements.
For example, a complex shape could be a rectangle with rounded corners. Each 'rounded corner' will be an arc. What are the vertices of an arc for the purpose of your application?
Regards, Jon Summers LA Solutions
Thanks Jon, Range will do for me.