Trying to create Structure from points

Can anyone please help me on this, I have points and need to create structure from these, there is error coming. Can please resolve it?

Please copy the information from the error message. We need to see all of if but probably you miss some inputs.

Can you first add the input for “Rotation” for example just a double or an integer

Warning: PipeNetwork.AddStructureByPoint operation failed.
Fail to add structure.

Now this error is coming and just one structure is creating.

First remove the “List.Transpose” and use List.Flatten then also check the Rotation as I asked you to do.
Can you copy the info from yellow dialog
image

see waring message " Warning: PipeNetwork.AddStructureByPoint operation failed.
Object reference not set to an instance of an object."

Happens sometimes.
If it’s a random glitch, one thing to try is disconnecting the PipeNetwork wire, run the script, then reconnect and rerun.