Get Pressure Pipe from User Selection

What I want to do is have the user select a pressure pipe in a profile view and then do things to that object using the PressurePipe object. I’m sure I’m missing something simple, but how do I do that?

When I use the Select Object node and select a pressure pipe in a profile view it returns a CivilObject instead of a PressurePipe object.

When a pipe is selected in the model space it returns a PressurePipe object.

How can I return a single PressurePipe object from a user selection on a profile view? Do I need to do a filtering using the selected object name on the full list of pressure pipes in a network?

I was able to get it using the Civil Object By Name node.

I really wish Autodesk would treat pipe and pressure network objects in a profile view as the main object type instead of something different.

Hi @Cadguru42,

Glad you found a solution, and I understand the confusion. However, there is a fundamental difference between the “actual” pressure pipe and what is drawn in profile view. The latter is a different representation of the pressure pipe, but it can’t actually be the same thing. Otherwise you wouldn’t be able to select them independently and have them located in different places in model space :slight_smile: Maybe a good analogy here is how a surface profile is not the surface itself, but rather a different representation of the surface. When you select a surface profile, you get a profile and not the actual surface.

I know it’s a very granular distinction. One of the cool things about Dynamo is that it starts to give you a glimpse of how things work in Civil 3D at a granular level, which is often a little bit different than how things appear in the user interface.

With all that said, your selection just returns a generic CivilObject in this case because we haven’t added explicit support for these profile view representations of the objects. We can see about doing that, so that you can have an easier time traversing back to the source object.

1 Like

What’d be nice is in C3D itself when a pipe network or pressure network object is selected the same properties the core ACAD properties window show up just like when they’re selected in model space.

I understand about the objects being treated separately in profile view, but if C3D was a true BIM (as advertised) it’d just be a slice of the 3D object itself and not a separate instance of it. It leads to other issues, such as the bug with pressure pipes in profile view ignoring the Plot Style.