Hi everyone,
I have a Dynamo script that uses AutoCAD lines to create a cable tray path and currently places one cable path inside the tray.
Output of Current Script below: (Yes, the bend is a little messed up still trying to figure out how I’d fix this, probably a bigger elbow)
I would like to expand it so that the tray can be automatically filled with multiple cables without overlaps. Currently I’m using the offset command in Revit to duplicate the cable paths multiple times and filling the cable tray.
The intended logic is:
Tray Inside Width + Tray Inside Height
↓
Cable Diameter
↓
Calculate Horizontal Positions
↓
Fill First Row of Tray
↓
Calculate Vertical Positions
↓
Add Additional Rows
↓
Create Cable Paths
Ideally, the inside width/height and cable diameter would be retrieved from Revit, but manual inputs would also be fine.
Is this practical to do in Dynamo? Also, would you integrate this into the existing cable tray script or handle the cable-filling calculation as a separate script?
Any help with this would be greatly appreciated.
Thank You!



