Thanks in advance for this begineers question.
It seems there is a nice way to traverse all Network Systems.
List<NetworkSystem> networks = NetworkSystem.GetAllExistingNetworkSystems(); foreach (NetworkSystem networkSystem in networks)
Is there a way to get related (or all) PipeComponents? PipeComponent
Do I have to use the ECInstanceList as in the sample find pipes of zero length as per snippet below?
Or is there a better way to access data as when creating pipes, equipment etc.
How do I list all properties that can be accessed on IECInstance?
I'd like to identify the start and end point of the pipe and other attributes.
Thanks,
Jon
ECInstanceList pipeInstances = DgnUtilities.GetInstancesFromDgn("PIPE", true);
if (pipeInstances != null && pipeInstances.Count > 0) { foreach (IECInstance instance in pipeInstances) { double len = instance["LENGTH"].DoubleValue;
Hi Jonathan,
I recommend to read blogs about EC data, especially how CRUD operations can be done. The examples are also available in MicroStation SDK.
I do not know OpenPlant and how EC data are implemented (are they persistent or are they generated on the fly...), but to obtain all EC properties specific for a particular element, you can use DgnECManager.GetElementProperties() method, it was discussed in MicroStation programming forum several times.
With regards,
Jan
P.S. Please, follow best practices and use Insert > Insert code tool every time you want to share a code snippet.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point