3D modelling of a pipeline

Being a novice Dynamo, I go through all the accessible forums but I still have trouble understanding all the basic precepts, and do not find or at least does not arrive to my ends.
I would like to write a script allowing me from the 3D polylines and their different known vertices in X, Y and Z, retrieve its data, and, by assigning a diameter parameter, model the pipes in 3D and then make an export format “. ifc”.
However, as you will understand, I can’t really do it. If anyone would have advice, directions to give me so that I arrive at my goal.
Thank you in advance.

Hi @g.verzegnassi,

Green group, selects the 3Dpoly and get the geometry splited into curves (lines)
Blue group, gets all the part lists, families and part sizes. Here, the “tricky” part is to select the desired part size which i do by using List.GetItemAtIndex
Purple group, creates a Pipe Netrwork by name (which can’t be on use) and the pipes with the specified geometry and size.

Once you create the pipe net and pipes, you need to set the elevation by invert or center points of the created pipes

I think this is a good start to work your way on this task.
Im using Civil3dToolKit extension nodes in this graph