scan GroupedHoleElement

I would like ask if it is any way in .Net environment to scan GroupedHoleElement (expect for using interop lib). I tried use (var curveGroup = e.GetCurveVector();) and  it exposes components

     foreach(var curve in curveGroup)

            {

                CurvePrimitive x = curve;

            }

But I didn’t found any u seful way how to manipulate curveprimitives (if it is shape, circle or …) how to obtain geometry, stroke, level, fill parameters.

Parents
  • I would like ask if it is any way in .Net environment to scan GroupedHoleElement

    In addition to Jan's comments, you should note that a Grouped Hole is an anonymous cell.  That is, to find grouped holes you should search for anonymous cells.  Then, test the cell to determine if it is really a grouped hole.

    Use CellElement.Drop() to get an ElementEnumerator of its components.

     
    Regards, Jon Summers
    LA Solutions

  • In addition to Jan's comments, you should note that a Grouped Hole is an anonymous cell.

    Well, it goes a bit beyond original topic, but in my opinion it's something that has not been important and should not be used in C++ API. So my comment is more about "API style and philosophy" than about how to implement working, despite of old-fashined, code.

    My understanding of MicroStation C++ API and a move that begun long time ago when the new API was introduced in V8i SS3 (if I remember correctly) has been about move from data structures and data storage details (MSElementDescriptor, desing file element types, different ways how cells are used to represent cell, groupped elements, groupped holes, SmartSolids etc.) to higher level of abstractions (ElementHandlers).

    From this reason I think any new code should not depend on element type evaluation and to check how specific object is stored in repository.

    Regards,

      Jan

Reply
  • In addition to Jan's comments, you should note that a Grouped Hole is an anonymous cell.

    Well, it goes a bit beyond original topic, but in my opinion it's something that has not been important and should not be used in C++ API. So my comment is more about "API style and philosophy" than about how to implement working, despite of old-fashined, code.

    My understanding of MicroStation C++ API and a move that begun long time ago when the new API was introduced in V8i SS3 (if I remember correctly) has been about move from data structures and data storage details (MSElementDescriptor, desing file element types, different ways how cells are used to represent cell, groupped elements, groupped holes, SmartSolids etc.) to higher level of abstractions (ElementHandlers).

    From this reason I think any new code should not depend on element type evaluation and to check how specific object is stored in repository.

    Regards,

      Jan

Children