AddPipeByCuve error

Hi all,

I ran into a problem with this dynamo graph. An error most of you have heard/seen before:
‘Object reference not set to an instance of an object’
In this case for the ‘add pipe by curve’ node (civil 3d toolkit).

The graph (should be) doing the following:

  1. Get geometry from a block by name;
  2. Filter out the longest line;
  3. Create a pipe base on the line.

Later I want to add attributes to the block to select part size and maybe elevation.

I checked for null values and couldn’t find any. Do you have any other suggestions?
It might be obvious, I am still pretty inexperienced in dynamo.

Looking forward to your suggestions!

Sincerely,
Jochem

@Paolo_Emilio_Serra1
@Anton_Huizinga

Dynamo-C3D_Duiker-naar-3D.dyn (63.9 KB)

u cannot send polycurve, it only takes curve

Thank you, this is it!
I’m sure I tested this before, but there must have multiple things wrong then.