How to move the tags with gven distance in Revit API

How to move the tags with gven distance in Revit API

Pravin_Lande
Enthusiast Enthusiast
406 Views
2 Replies
Message 1 of 3

How to move the tags with gven distance in Revit API

Pravin_Lande
Enthusiast
Enthusiast

Hi,

 

We have some Casework tags in file, we want to move the tags by giving some X and Y offset values. Kindly suggest how can we achieve this by adding given X and Y values in TagHeadPosition. 

 

Thank you.

 

Regards,

Pravin

0 Likes
407 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Dear Pravin,

 

Thank you for your query and for raising it here in the discussion forum.

 

If you search this forum for 'move tag', you will find a large number of earlier discussions regarding this topic.

 

The first one in the list I see seems to answer your question in full:

 

https://forums.autodesk.com/t5/revit-api-forum/move-tags/m-p/4372783

 

However, there are many more to look at as well.

 

The Building Coder also discusses this topic, briefly, offering a similar suggestion:

 

https://thebuildingcoder.typepad.com/blog/2013/10/move-tag-to-host-location.html

 

I hope this helps.

 

Please do search for existing answers before submitting a new thread.

 

Thank you!

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

Kevin.Bell
Advisor
Advisor

I would suggest using ElementTransformUtils.MoveElement:

 

https://www.revitapidocs.com/2016/781ad017-5ee5-f44b-5db2-e8e1f883ae5d.htm

 

Kevin.

0 Likes