Imaginary Rotation Axis?

Imaginary Rotation Axis?

Anonymous
Not applicable
476 Views
1 Reply
Message 1 of 2

Imaginary Rotation Axis?

Anonymous
Not applicable

I am trying to rotate an element with: ElementTransformUtils.RotateElement(doc, elementId, rotationAxis, rotationAngle);

 

Autodesk.Revit.Creation adds a whole new layer of confusing.  Is there any way to define an imaginary rotationAxis to rotate about, or do I have to use the creator to create the line?

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

ollikat
Collaborator
Collaborator
Accepted solution
Hi

It depends the Revit version you have. Nowadays there's the static methods in Line class for creating new lines. See if you can find CreateBound() and CreateUnbound() methods.

But yes...it still creates a line...can't use vector etc. more abstract here. But Line is not an element and I think you don't need to worry about it after you have created it (tell me if I'm wrong).
0 Likes