Hi everyone,
I hope you’re all doing well.
I’m encountering an issue while trying to convert a line into a duct using Dynamo and Python. Whenever I run my script, Dynamo becomes unresponsive, and Revit eventually stops working. I have to close Revit using the Task Manager each time this happens.
I’ve tried using both packages and Python scripts, but the issue persists. This problem has been occurring from Revit 2022 to 2025.
Same thing happening for conduit and pipes
Can anyone explain why this might be happening and suggest a solution?
Thank you in advance for your help!
sysType = (UnwrapElement(IN[0]))
dtType = (UnwrapElement(IN[1]))
lvl = (UnwrapElement(IN[2]))
stPt = (UnwrapElement(IN[3]))
enPt = (UnwrapElement(IN[4]))
tempList =
#Here we starting the Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
#Here we need to Do all Revit API Operations
dt = Duct.Create(doc,sysType.Id,dtType.Id,lvl.Id,stPt.ToXyz(),enPt.ToXyz())