Creat Column's Ducts

Hi there,

I’ve modified this python script in order to create column ducts but it doesn’t work
Could somebody tell me the correct command and parameters for Duct ?

Thanks

Capture%20Dynamo

This is a good place to start:

http://www.revitapidocs.com/2018.2/86174dcb-e86e-c987-93ff-75e3d2773cf0.htm

You’re missing your duct type id parameter.

Also, you’re referencing doc twice. Dunno if this could throw an exception :slightly_smiling_face:

It worked !
But For some reason the second node with level by colunm did not work ,. I can work with this one but that’s not what I want

Capture%20Dynamo1%20 Capture%20Dynamo

It’s failing because your input is a list of lists. You’ll need to iterate through your nested lists to get the level id.

Edit: I just noticed you did unwrap the levels :slight_smile:

Hi,
I tried many things different, but it doesn’t work …
I search on http://www.revitapidocs.com/2018.1/9235095b-b7ae-b6e5-6cc2-2b8d397644de.htm
but no result … :confused:
my last test …

Flatten your level list input into a single list. The way you are collecting the level Id’s right now won’t work. You should delete everything from line 37 up to 42. Then on line 46 replace ‘LevelId’ with ‘level[i].Id’