I am trying to write a graph that changes the pipe & structure layers for a selected Pipe Network.
I am brand new for Dynamo. How can I select a pipe network from a list in order to change the pipe & structures to a pre-defined layer? This is as far I have gotten.
CHANGE_PIPENETWORK_LAYERS.dyn (14.2 KB)
Thanks,
paul
It depends on how it fits the best your use case, but you can simply use the node “Select objects” to select the pipes/structures you want to change. You can also add the layer as a string input and use the Dynamo Player to run it.
Other option would be to filter them automatically, get all pipes and filter only the pipes in a specific layer or which name starts with a certain word, etc. I think there are a plenty examples here in the forum about it, but feel free to ask for any help needed!
Thanks… I will keep digging. I just want to be able to move all the pipes & structures within a network to another layer without having to pick on each item. I can easily pick all these entities using OTB AutoCAD commands and not have to write a graph. If I have 10 pipe networks in a drawing, I want the ability to pick a single network and change its object layers.
I think the best way would be to filter by name, like below:
I did it natively, but I also recommend the Camber package for dealing with pipenetworks, it has a lot of great nodes for it.
Edit: I don’t remember if Civil 2025 brings a suspended list of pipenetworks as a node, but it might be the case - I’m still not using this version.