rotation family instance

rotation family instance

Anonymous
Not applicable
894 Views
1 Reply
Message 1 of 2

rotation family instance

Anonymous
Not applicable

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

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

ollikat
Collaborator
Collaborator
Accepted solution
Hi

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