Get detail line from roof plinth family

a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; }

Hi everyone, I’m new to Dynamo and need help automating a task in Revit. Context: - I have a roof with many plinth beam family instances placed on top (more than 100). - For each plinth family, I need to draw a rectangle of Detail Lines around it in the active view. - Doing this manually is very time-consuming. What I tried: - I have a basic script that gets family locations and draws lines, but I’m struggling with: - Getting the bounding box for each family - Drawing all four lines automatically - Assigning a specific line style - Handling large numbers of families efficiently Questions: 1. How can I create Detail Lines around each family instance automatically using Dynamo? 2. Is there a way to use the BoundingBox of each family to draw the rectangle? 3. How do I set the Line Style for these detail lines? 4. Any tips for performance when dealing with 100+ instances?

Before Dynamo: Have you tried editing the family or creating a parametric family instead?

For Dynamo try:
Element.BoundingBox. Then get the maximum and minimum points. Ignore the Z values
Use those points to get the 4 cornerpoints of the rectangles and draw the lines in Dynamo
Then convert the lines to Revit lines. However in this case I would draw a transparent Filled Region. That way you can have an annotation symbol type specific for this task and more easily control the settings that way

Can you share the script if you can

I didn’t make a script for this. Try it yourself and post back when you solve it or get stuck

hi you send points and not curve

cordially

christian.stan

You didn’t apply any of the nodes I mentioned either. Try these and connect them properly (you might need multiple of the same nodes)

Element.BoundingBox
BoundingBox.MaximumPoint
BoundingBox.MinimumPoint
PointX
PointY
Curve.ByPoints

You might want to study up on points and curves with the Aussie BIM Guru channel:

1 Like