Revit tag point of origin

Revit tag point of origin

Anonymous
Not applicable
649 Views
2 Replies
Message 1 of 3

Revit tag point of origin

Anonymous
Not applicable

Hello Revit Coders,

I'm attempting to get move an element tag head to the point of the tags origin (where the tag connects to the element that is being tagged). I'm struggling to find a proper approach to doing this. Any advice on how one might go about finding this point? I've attached a picture illustrating which point I'm attempting to access.

 

The reason for this, I want to get JUST the geometry surrounding the tag head however there is no way to do that, even if you hide the leader. So instead, I want to move the tag head to the point of origin, then get the bounding box dimensions, return the tag to the previous location and then set the bounding boxes geometry to match the previously collected dimensions with the center point being the tag head position. Any advice would be appreciated!

 

0 Likes
Accepted solutions (1)
650 Views
2 Replies
Replies (2)
Message 2 of 3

Organon
Advisor
Advisor
Accepted solution

@Anonymous 

 

Hi,

 

Try this:

 

XYZ leaderEnd = tag.LeaderEnd; // Leader end.
tag.TagHeadPosition = leaderEnd; // Move tag head to the leader end.
tag.Document.Regenerate(); // Regenerate the document.

 

Regards,


Arquitectura | Análisis CAD & BIM | Diseño Paramétrico | Programación
BIM-METADATA | LinkedIn | YouTube
0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank you!
This did work very well! One note incase anyone should ever need to do this as well, the leader needs to be have a free end not attached in order to get the end point of the leader. So for my solution, I ended up opening a transaction, setting the tag to free ended and then returning it to attached after completing what I needed to complete.