Rotation of entities in a Block Reference

Aug 8, 2013 at 6:57 PM
How to get the entities position with the transform of the block? The block I want to read is rotate 90, but I dont know the center of rotation. I read something about TransformAttributes(), but didnt work (no attributes).
Coordinator
Aug 11, 2013 at 10:32 AM
I guess when you wrote that the block is rotated 90, you meant a block reference (aka insert). It is the block reference that defines the transformation of the entities that are part of the block definition. The rotation property of an insert defines the angle of rotation along the insert normal and its center of rotation is the insert position, but if the block position is not zero you need to take it into account. There is some commented code of an explode method inside the Insert class that might help you, although it is still a work in progress.

Daniel