Dynamo script help!

Dynamo script help!

avalentineT4CX6
Explorer Explorer
1,592 Views
7 Replies
Message 1 of 8

Dynamo script help!

avalentineT4CX6
Explorer
Explorer

I am trying to create a script that places points on the bottom of conduit automatically, at a certain distance, bends, etc. I was able to create a script to place points on duct bank. Has anyone done one for conduit?

 

Thanks,

 

 

0 Likes
1,593 Views
7 Replies
Replies (7)
Message 2 of 8

RLY_15
Advisor
Advisor

Post what you have so far for duct banks and we can help modify it to be applicable to conduits.

Is this for standard Revit design or for FabricationMEP?

 

What do you mean by placing points? Spot Elevations? Insert locations for hanger families?

0 Likes
Message 3 of 8

avalentineT4CX6
Explorer
Explorer

Here are some snips

0 Likes
Message 4 of 8

avalentineT4CX6
Explorer
Explorer

Rest of snips

0 Likes
Message 5 of 8

RLY_15
Advisor
Advisor

For future reference, there's an Export Workspace as Image button in Dynamo that will get you the entire script in one file. You just need to zoom in close enough to see the node titles, export, and everything will be readable.

 

At a rough glance, it looks like you're familiar with geometry workflows and are currently working with surfaces.

Conduits should be much simpler than what you've done so far, because conduits have their locations stored as Line entities.

 

You should be able to just GetLocation a conduit, use your PointAtChordLength logic, get the Outside Diameter parameter value, and just translate the Point list down the Z-axis based on the Outside Radius:

robert2JCCH_0-1714682496528.png

--------------------------------

As for bends, those are part of the Conduit fittings category. I don't know enough about electrical families, but the most basic bend family has an insertion point that doesn't align to a spot on the curve, so a GetLocation method isn't really going to work here.

 

If it's a symmetrical bend, I would think that you could find the centerpoint of the fitting using the Geometry of the family and the Solid.Centroid node, then apply the same Z-offset method as the pipes. If it's asymmetrical, are you still supporting it at the centroid? I'd have to default to you on that one.

0 Likes
Message 6 of 8

avalentineT4CX6
Explorer
Explorer

Gotcha I attached the whole workspace below. 

0 Likes
Message 7 of 8

RLY_15
Advisor
Advisor

@avalentineT4CX6 wrote:

Gotcha I attached the whole workspace below. 


Yep, you just need to zoom in close enough to read the node titles before the export - otherwise all the text blanks out like in that image. Don't worry about not being able to see the whole script before you export - the command captures everything, even if it's not on your monitor display.

 

 

0 Likes
Message 8 of 8

avalentineT4CX6
Explorer
Explorer

Aghh, I see now. That is neat. Learn something new every day. 

0 Likes