[OpenPLANT CE U5 c#] Traversing Pipes

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;

Parents Reply Children
No Data