IndependentTag RotationAngle property issue

IndependentTag RotationAngle property issue

denisyukJ
Advocate Advocate
195 Views
4 Replies
Message 1 of 5

IndependentTag RotationAngle property issue

denisyukJ
Advocate
Advocate

Hi, 

I use RotationAngle property to rotate tag, revit gives me to set the value of the property, but position of tags still the same. Once I select modified tags by rectangle frame it regenerates and rotates. Look at the gif below. Transaction commited so regeneration should be completed automatically, am I correct? Do somebody know how to fix it? 

 

3Ig0ivVQf6.gif

0 Likes
196 Views
4 Replies
Replies (4)
Message 2 of 5

MarryTookMyCoffe
Collaborator
Collaborator

Commit should do document.Regenerate(), from what I remeber. But what is the problem it seems like thy did rotate.

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
0 Likes
Message 3 of 5

denisyukJ
Advocate
Advocate

Hi, @MarryTookMyCoffe 

I need to select elements manually to makes rotation 😞

 

0 Likes
Message 4 of 5

MarryTookMyCoffe
Collaborator
Collaborator

so what you claim is that when you create tags with rotation property, tag stay with default rotation?

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
0 Likes
Message 5 of 5

Speed_CAD
Collaborator
Collaborator

Hi,

 

I solved it this way:

IndependentTag independentTag = IndependentTag.Create(...);

independentTag.RotationAngle = angle;

// This is the trick
XYZ p = independentTag.TagHeadPosition;
XYZ dx = 1e-6 * activeView.RightDirection;
independentTag.TagHeadPosition = p + dx;
independentTag.TagHeadPosition = p;

doc.Regenerate();
Mauricio Jorquera
0 Likes