RIR - Add Aligned Dimension to Detail lines

Hello,
I am trying to add an aligned dimension in Revit to a detail line. See results in Rhino to match.
Steps:

  1. I first create the detail line (Add Detail Line)
  2. I find the end points to use and am trying to build reference points (no luck)

Any ideas?
I want to use the end point not the line itself if possible.

Thanks in advance.


Hi @SA12 Use a Detail Line as both the reference and the input line. The benefit of using a Detail Line is that this component automatically treats its endpoints as valid reference points.
This means you don’t need to extract or define references manually the component does it for you.

Thank so much @Muhammad_Saqlain_Awa

I would like to build something more robust using points instead of lines.

Tha’t why am trying to use reference points.
Cheers

you can create something like this

Thank you.
Would not this create 2 addition detail lines in the view?

Yes, what you can do is to set the detail line length very small.

Hi @SA12

You can easily do that using the Curve Point References Component.

1 Like

fantastic, thanks so much!!
Do you happen to know how to add linear dimensions? I am only able to generate aligned dimensions (blue in the screenshot) but not linear ones. Even if I put the line as vertical or horizontal, it comes out inclined.

Thanks

Hi @SA12

It depends on the orientation of the placement line. If it is placed horizontal you will get the horizontal dimension

1 Like

I am getting funny results atm. I will check further. thanks so much

This is funny.
If I change the type of my dimension to another one, the dimensions will change from linear to aligned. I am using a duplication of the same type…

See video..

Do you have the same issue?

Hi @SA12,

Yes, this is expected. The Add Aligned Dimension component forces the dimension to align with the placement line. So, when you unpin your dimension and try to move it or change its type, its behavior will change.

1 Like

If you want to change the Type, use the type input

1 Like

As soon as I plug something different from “Diagonal” in the type, the dimension will become “aligned”

Deafult Type

Another Type (Duplicated from Diagonal)

Thanks

Can you share your script?

Yes I have also noticed the same issue. But if you replace the end point with detail lines as a references it holds the dimensions successfully.

AlignedDim.gh (13.9 KB)