Hi, I am trying to model ducts from a CAD file. I have a script that models ducts from lines; however, in my current CAD file, the ducts are represented by their actual 2D width (two parallel lines). Because of this, my script models two separate ducts of the same size. How can I update my script to recognise these two lines as a single duct with the correct size? I have attached the snippet of script and my CAD. Also, there is an example of Duct modelling using my old script.(I have imported my CAD into Revit)
Hello @khushalashtankar74 and welcome, maybe something here could help
Thank you for your response. I tried using your script, but only the geometry was modeled, not the actual duct.
it was just an example how you can get the centerline from 2 curves, does your duct by line works ?
I’m assuming the Duct Bylines node is from the MEPover package. Can you provide the Dynamo/Revit versions, and the MEPover package version?
You can also try opening up the node definition and pulling out the guts, rewiring it, and running. If there’s a buried warning from the node you’ll see it that way.
I’m assuming this is a python versioning issue.
Hi Sovitek, after testing your script, I’ve noticed that the faint blue line resembles the model’s geometry.
hi @khushalashtankar74 if it your duct by line there fail as i assume is from mepover, then be sure you have ironpython 2.7 version 2.5 installed, or open the node and try if it not could run with cpython 3 without any modify, or try ,Open MEP package as have similar nodes, written in c, so no need any python at all
Hi @sovitek, I have updated my script and created a new topic. Please check that
why not stay here in this topic here as it seems almost the same so we dont have duplicated post ??
Sure @sovitek, we can continue here, but please check that topic and reply here. I apologise for the inconvenience.
no worries…then share the dyn here and the text here…and delete the other…so we only have one thread for that
I am trying to create a duct using CAD like @jacqueline.fanous. I have made this script, but I am having issues with modelling. I am sending an image; please provide any solutions.
This is the graph Image with the DYN file
The second image is a 3D view after running the script.





