RotateElement:Element rotates temporarily and then reverts to original position

RotateElement:Element rotates temporarily and then reverts to original position

dirk.neethling
Advocate Advocate
246 Views
1 Reply
Message 1 of 2

RotateElement:Element rotates temporarily and then reverts to original position

dirk.neethling
Advocate
Advocate

I rotate an ELement (FamilyInstance) using the following code:

 

Line lineAsAxis = Line.CreateBound(new XYZ(0, 0, 0), new XYZ(0, 1, 0));

double rot = ConvertToRadians(90);

ElementTransformUtils.RotateElement(doc, elem.Id, lineAsAxis, rot);

 

THe ELement rotates successfully, I can see it in an instant during debugging, but then reverts to its original orientation upon completion of the Execute Command. Code runs in a transaction. What could be the reason for this?

0 Likes
247 Views
1 Reply
Reply (1)
Message 2 of 2

dirk.neethling
Advocate
Advocate

I found out I am working with adaptive Elements, thus the question is irrelevant.

0 Likes