.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BlockReference transformation

4 REPLIES 4
Reply
Message 1 of 5
jramos
472 Views, 4 Replies

BlockReference transformation

I have a plugin for AutoCAD that, for some block references (with a specific XData), exports them to another application.
The code is very simple: for each block reference to export, it interacts with it's block BlockTableRecord and exports the geometry (lines, circles, etc.) and the BlockTransform matrix associated with it.
It works out correctly but only in 95% of the cases, particularly, in the one I attached an image of.
In the image there are 2 block references (to the same block) and the exported data of one of the blocks is mirrored in the Y axis. I've looked at every property of both block references and I can't find out what is different in the mirrored one (their ECS are the same). I simply can't find out what more I have to use, besides the BlockTransform matrix to get the correct transformation.

Thanks
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: jramos

Dynamic block?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6329278@discussion.autodesk.com...
I have a plugin for AutoCAD that, for some block references (with a specific
XData), exports them to another application.
The code is very simple: for each block reference to export, it interacts with
it's block BlockTableRecord and exports the geometry (lines, circles, etc.) and
the BlockTransform matrix associated with it.
It works out correctly but only in 95% of the cases, particularly, in the one I
attached an image of.
In the image there are 2 block references (to the same block) and the exported
data of one of the blocks is mirrored in the Y axis. I've looked at every
property of both block references and I can't find out what is different in the
mirrored one (their ECS are the same). I simply can't find out what more I have
to use, besides the BlockTransform matrix to get the correct transformation.

Thanks
Message 3 of 5
jramos
in reply to: jramos

No, it isn't a dynamic block, I checked that...
Message 4 of 5
Anonymous
in reply to: jramos

Then it must be the exporting code that's doing that.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6329730@discussion.autodesk.com...
No, it isn't a dynamic block, I checked that...
Message 5 of 5
jramos
in reply to: jramos

Well, I simply export 16 doubles (the BlockTransform matrix), then, in my application, I simply apply the transpose of that matrix and draw the lines, circles, etc... (I have to use the transpose since I'm using OpenGL to do the rendering).

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost