Create Pipes from polylines

I’m simply trying to create pipes from polylines, but something is going wrong with the(PipeNetwork.AddPipeByCurve) node.
This error shows up"Warning: PipeNetwork.AddPipeByCurve operation failed.
Object reference not set to an instance of an object."

The model only contains some 2d polylines drawn by me, and pipe network named “test” for the sake of testing

CreatePipesFromPolylines.dyn (22.8 KB)

I managed to solve the issue by changing the object type from polyline to polyline. but another issue shows up that it just creates one pipe instead of multiple pipes. any clue ?

Check the levels, it might resolve the issue.

what levels exactly ?

Apologies, i am not at the desk. but check the levels in node. if you right click you will see it. change levels from 0 to 2 or so on. hope it will resolve the issue.

sorry I can’t get your point

@MohamedR.Nasreldeen - probably good to read about levels if you’re unfamiliar.


@shahid.shaikh_C3D @mzjensen
That helped a lot… thanks a lot