Create Pipe from DWG file

Hi,I am fairly new to dynamo and would appreciate any help regarding this python script.
I have looked at previous posts related to this issue but cant seem to get this script working. Have a similar script for Ducts which works fine but could someone help get me over the line with this. Thanks

doc = DocumentManager.Instance.CurrentDBDocument
instead of IN[5]
Mby it helps

I can see you are missing the level id in the method you are calling. It should be level.Id and not LevelId :slight_smile:

The code is correct, but you are inputting strings in IN[2] and IN[3] instead of the actual types.

Thanks everyone!
It now works because of your feed back. Here is the result

Can you give me this script please?