Create clearance above cable tray

I am creating clearance above cable tray for coordination purpose.

I found a simple script from Dynamo Script:

How to optimize this script so when I hit run, the generated geometry can directly attach on the top of cable tray?

Thanks for any suggestion.

Hello and welcome…we cant see whats goin on in the image try to zoom in…here is a way there probably could work for sure not the same as the video (as i havent seen it )…good luck…

test clearance.dyn (33.2 KB)

and an exemple if you will import to revit, here i just use direcht shape…

4 Likes

thank you, it really works!

Hi sovitek I was trying to replicate your changes in the script but I haven’t had success, do you mind to share your script? thanks.

Hello @CarmeloBIM and welcome to the community. I just made is an exemple and have already shared it…whats exactly is the issue if you show a image i can try help…but just made a new topic…

Hello @sovitek,

Thank you very much for sharing your dynamo script, I’m very new to Dynamo and was trying to find the same solution in creating generic model families above containment myself. Your script runs perfectly and has been great for me to learn from also, so thankyou for sharing.

Please could you tell me how to keep the generic models above the original cable tray once you close Dynamo, and also how to make the newly created generic models above the containment ‘selectable’ as no matter what I have tried I cannot select them and place them onto a specific workset.

Any help would be greatly appreciated.

Many thanks in advance.

Regards

James

1 Like

Hi @Jimboid sounds you have some element binding, try run it from player, i dont have so much time in the moment, but if you share your graph i can take a look later…cheers :wink: