Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Imaginary Rotation Axis?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
291 Views, 1 Reply

Imaginary Rotation Axis?

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?

1 REPLY 1
Message 2 of 2
ollikat
in reply to: Anonymous

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).

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community