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?
Any coment or idea? Anybody? It seems my questions are hard-to-be-answered often (like also this one). ;-)
Paul Connelly or Mangesh.Shelar?
Labyrinth Technology | dev.notes() | cad.point
I haven't explored parametric components much. May I know what exactly you want to achieve. There are good set of managed and native APIs for parametric. Accordingly, I can pull in concern developer.
Btw, you can try ECX ITEMS DUMP key-in to see how EC is laid over parametric.
thanks for your answer.
Mangesh.Shelar said: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.
Mangesh.Shelar said: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.
Mangesh.Shelar said: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.
I am not able to simulate this problem on my developer environment. Can you please give me your file and exception log? I will have a look.
the zipped files are attached.
I guess one from important difference between your and mine environment is I use Czech local setting, which uses e.g. different decimal numbers format (decimal comma instead of point etc.).
When I searched for the exception log, I found out xml dump was created partially in temp folder. The file is attached too.