Rotate an entity (or layer)
![]() 10/24/2007 10:53 AM
|
---|
Hi Is there a simple way, to rotate an entity that is already in the model? best regards |
![]() 10/24/2007 10:57 AM
|
---|
Hi Clay, There is no simple way indeed to rotate the entity itself. You may however put it in a block, and rotate the insert. That way you just have to implement rotation for the insert entity. Wout |
![]() 10/26/2007 5:02 PM
|
---|
Hi Wout I try the hard way and move every vertex of a polyline :). This works so far, but..... To calculate the rotationpoint (centerpoint) I use the BoundsCalculator. But if I call it like this: C# Code:
BoundsCalculator bounds = new BoundsCalculator();
bounds.GetBounds(Model, entity); I get the bounds of the whole model, not only of the entity. Is this a bug or did I misunderstood the function of the BoundsCalculator? best regards |
![]() 10/26/2007 5:32 PM
|
---|
Hi Clay, You are correct. I am fixing this right now, for now use this overload please: C# Code:
void GetBounds(DxfModel model, DxfEntity entity, Matrix4D modelTransform); Thanks for the bug report! Wout |
![]() 10/26/2007 5:39 PM
|
---|
ok thank you |
![]() 10/26/2007 5:42 PM
|
---|
Ok, I have uploaded the patched version! Wout |