Create Pipe Node HELP!

Hi all, I found and old post (see below) that seems to solve the the create pipe from CAD problem but when it comes to the phython script I can’t seem to get it right, could anyone out there please help me work out what’s going wrong?

Original thread:

Script in my model;

Error message in Dynamo:

IronPythonEvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 35, in
TyoeError: expected Document, got Document


Hi @mairtin1983 ,

try replacing line 30 :
doc = IN[5]

with :
doc = DocumentManager.Instance.CurrentDBDocument

1 Like