Getpipebyname but get rid of document input and replace with pipenetworkname

I have been using the getpipebyname node but have been running into a problem. I sometimes have similar names between pipes in different pipe networks. Is there another node or python script that would replace the document input with a document.pipenetworkname input. Thanks!

Maybe not so fancy but this is a way it can be made

2 Likes

Thanks Patrick. I will try this out and let you know how it goes!

1 Like

So this works great for 2024 Civil 3d but doesn’t work for 2022 Civil 3d (I am missing some of the Camber nodes, see snip). Any work around till we update versions?
image

Hi @qnliebbe,

Try installing the latest updates for Civil 3D 2022. Should be 2022.1 or newer.

1 Like

@mzjensen @patrick.ericson Any ideas why A5-1 and A7-1 are not working???

Hard to tell without seeing the whole picture but are they unique items in the list?
Try this node to get a list of unique items as a list
image

and insert it after List.GetItemAtIndex

Can you upload an example dwg and your .dynfile?

Did you found a solution in this one?

Solution:
Instead of using getpipebyname. I used pipenetwork,getnetworkbyname and pipenetwork,pipes. Once I got the pipe names, I used list.firstindexof and list.getitematindex to find common pipe names.

As for the excel error, I believe it was spaces in excel. If a pipe doesn’t get updated, the first thing I do is retype the pipe name in the excel document.

Snip for reference: