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
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
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
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
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
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 …
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’