When i attach an xref through the code i also try to give it a rotation:
double rotation = 90;
BlockReference blockRef
= new BlockReference
(insertPoint, objtId
);blockRef.Rotation = rotation;
But it is not really clear to me what the units are that the rotation is using.
Looking in my drawing where the units are set to "Decimal Degree" the double value of 90 ends up in a rotation of 333.
I cant really find the logic in this. Am i using the rotation wrong, or can i somehow set the unit type before applying the value to the block ?