Duct/Pipe/Cable Tray offset

Hello all,

I have been working on a script to help with clashes in models. I am not looking for any automation of fixing clashes because I want the users to see the clash. Ideally the user would slice the object in two places. Select the middle element and apply an offset and angle(45 or 90).

That would be the end goal but I understand baby steps are usually the best way to go.

Currently the script draws the lines from the duct point but does not model the duct. I believe the issue is in the Duct.rectangle.Bylines node. Not that this is MEPovers issue but something in my revit is fighting this node from working correctly. Ideally it would also connect the ducts with fittings and


This will eventually have a UI(datashapes) but I want to get the concept working first.

Here is the full script image:

test3.dyn (89.1 KB)

If anyone could offer some words of wisdom or help out with a piece of this. It would be greatful.

@sovitek

1 Like
1 Like

So I renamed the DuctTypes to ductTypes and the error goes away but I still get a null result.

You’ll have to post a better image with the node names and preview bubbles visible so we can see what’s going on.

Hi @george.kaline …happy the node from mepower works for you now…here is an example how it could be done it could be a start for you, it will work on rect ducts but very easy could work on round duct and pipes but not Cabletray the split tool doesnt support that so here we had to rebuild the whole run…run it from player for avoid element binding…give it a try :wink:

2 Likes

Thanks @sovitek for the graph. I was able to get it working.

I can get the other duct and pipe types to work so thank you for this.

1 Like

Here is a way for 45 degree…as you ask for in PM …can probably be made smarter, but is what i had time for now…

1 Like

@sovitek Your a genius. Thank you so much!

1 Like

hæhæ thanks for that label please share that with my boss :wink: :wink: happy you can use it…

@sovitek Would it be possible to share the .dyn file? We’re having some trouble determining how the nodes are connecting from the image and find the idea of such a script fascinating and very useful! Thanks in advance.

1 Like

Continuing the discussion from Duct/Pipe/Cable Tray offset:

Thank you…please make a new topic and show an image with all nodes expended, and i will try to help you :wink:

1 Like

Please Share Scrip Dynamo? Thanks you.

Hello isnt it what i already do ?? try as showed and if you go stuck please create a new topic and share a image,dyn,rvt and the community can try help

Hello @WSAMAN i dont have so much time right now…please create a new topic and show an image with your graph with all nodes expanded so we can see whats goin on…you know this method i try is a couple of year old and i will probably do it another way today…play around with it and find out where the issue is and fix it…good luck

1 Like

Dear K. Sovitek

Thanks you.

Best Regards.

Thanks you.

here is a very fast example for 90 almost the same for 45, just some math :wink: try it and play around with it…
Revit_DK9HZZFlYF
Home.dyn (76.7 KB)

1 Like

Can it be made at a 45 degree angle like this?

yes sure, just create the routing for 45 degree instead of 90…just math :wink: :wink:

Could you please share the scrip dynamo?