I'm attempting to measure the area of shapes in a DGN model. If my model scanner finds a shape or complex shape then the measurement is straightforward.
Some things that look like shapes are associative regions. They seem to be a cell named AssociativeRegion containing a single shape element. I can write a class to analyse that object, but am I missing something in the API? Is that a sufficient and consistent construction of an associative region? I can see a C++ handler for associative regions (AssocRegionCellHeaderHandler), but I don't see its analog for .NET.
AssocRegionCellHeaderHandler
Jon Summers said:If my model scanner finds a shape or complex shape then the measurement is straightforward.
You should be looking for elements that support ICurvePathQuery and checking CurveVector::IsAnyRegionType. Checking for shapes and complex shapes misses group holes and extended elements.
Jon Summers said:They seem to be a cell named AssociativeRegion containing a single shape element.
It's not always a shape, it depends on the region roots...
HTH
-B
Answer Verified By: Jon Summers
Brien Bastings said:IsAnyRegionType
Great for C++, but I don't see its .NET equivalent.
Regards, Jon Summers LA Solutions
MicroStation element/geometry/display/tool code is written in C++, save the .NET for ui...