I have created the attached script to select pipes within the network and set the start and end invert levels from the property set data of the connected structures (the invert level is contained within the structure property set data).
It works perfectly for individual pipes. However when applying it to a network it applies the same invert levels to all pipes rather than using the start and end structure property set data invert levels.
I think I’ve missed a step to generalise the start and end invert levels for each pipes connected structures so its picking up the same one.
You would just need to change the input for property name to “invert_level” and remove the string to number node since you are using real type and should work. 3d v4.dyn (75.7 KB)
Couple of things I noticed, if the pipe does not have a start structure it will not assign the end invert level even though it has a end structure and vice versa.
As you noted previously, it also disconnects all structures it has set the invert level from. Is it possible to run the reconnectnetwork command at the end of the script? Had a look but couldn’t see a node for it.