difference between ElementTransformUtils.RotateElement and Location.Rotate

difference between ElementTransformUtils.RotateElement and Location.Rotate

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

difference between ElementTransformUtils.RotateElement and Location.Rotate

dirk.neethling
Advocate
Advocate

Hello,

 

what is the difference between applying

 

ElementTransformUtils.RotateElement(doc, fi, axis, angle)

 

and

 

fi.Location.Rotate(axis, angle)

 

to a FamilyInstance?

 

dirk

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

Anonymous
Not applicable
Accepted solution

Dear Dirk,

 

 

 

As  notice I guess the basic difference between in term of work:

 fi.Location.rotate : Rotate element with their dependent element. Suppose B element attached with A if you use Location.Rotate(A) it rotate B also. While ElementTransfomUtil rotate only specified element.

You can also see their metadata summary.