[CE U12] How to access parametric solid using EC Query?

Hi,

this my question does not relate to specific API and is more about general concepts how to access elements and related data.

Also, it's just a theory and I did not write any test code yet, so maybe I will realize I am asking something obvious when some code will exist ;-)

When using ECQuery class to access design file data, there is usually 1:1 mapping between DGN element types and EC classes, also for some extended elements (type 106) like Parametric Cell related EC class exists. But how parametric solids (e.g. simple one created using union of two slabs) are represented in "EC world"?

In other words: Is it possible to access parametric elements including their properties and feature tree using EC query?

With regards,

  Jan

Parents Reply
  • Hi Mangesh,

    thanks for your answer.

    May I know what exactly you want to achieve.

    Now it's more about thinking about concepts and API features than about specific requirement. Because I have used EC data in my applications for years, I like the standardized approach to design data provided by EC query. And from self-study perspective, it's good to know how different data structures are converted to e.g. i-model format.

    There are good set of managed and native APIs for parametric.

    Yes, I agree, specialized API always provide better and more granular access than general formalized query. But in some scenarios to receive information about different elements (not to manipulate with them) using the same querying concept would be better than to write special code depending on the elements type.

    At this moment, it would be nice to know in what detail parametric solids can be queried using EC query.

    Btw, you can try ECX ITEMS DUMP key-in to see how EC is laid over parametric. 

    Thanks! I have not used this key-in for quite long time, so I forgot completely to check what data are reported.

    Would you be so kind and to check a bug I found? When I try to dump empty model with just one solid (e.g. slab), the data are reported. But when I unite two blocks, the key-in leads to MicroStation crash. Tested on two different installations of Update 12 on different Windows 10 builds.

    With regards,

      Jan

Children