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: 

rotation family instance

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

rotation family instance

Hi,

 

Rotation of a family instance results in strange rotation when done through api but doing it manually in revit results in correct rotation.

Manual Rotation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

step2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

finalstep

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Doing so via api gives wrong results:

Line axis = app.Create.NewLineBound(circpos, new XYZ(circpos.X, circpos.Y, circpos.Z + 10));[circpos is the insertion point of the family instance]

ElementTransformUtils.RotateElement(Command.doc, finst.Id, axis, 65);

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

Hi

I think you should give angle as radians for RotateElement().

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

Post to forums  

Forma Design Contest


Rail Community