.NET

Reply
Valued Contributor
pavlos.katsonis
Posts: 67
Registered: ‎09-12-2006
Message 1 of 2 (132 Views)

GeometricExtents of RotatedDimension

132 Views, 1 Replies
02-06-2007 01:44 AM
Hello,
I'm trying to get the extents of a RotatedDimension with Entity.GeometricExtents, but AutoCAD throws an AutoCAD.Runtime.Exception. This anly happens with RotatedDimensions, all other entities return their extents. The dimension itself seems to be correct, since it is drawn at it should and audit finds no errors.
I've looked a bit into the ARXDBG sample that extracts the extents of RotatedDimensions fine and it seems that AcDbEntity::getGeomExtents from ARX works with AcDbRotatedDimension.
Could it be that Autodesk forgot to implement this wrapper or am I missing something?
Anyway, in order to get the extents, I'm trying to get the anonymous block created by the dimension ("*Dxxx"), but I can't find a property or method to return its ID or name. Can anyone help please?
Valued Contributor
pavlos.katsonis
Posts: 67
Registered: ‎09-12-2006
Message 2 of 2 (132 Views)

Re: GeometricExtents of RotatedDimension

02-07-2007 04:33 AM in reply to: pavlos.katsonis
Well, after 2 days of experimenting I at last found the reason for this bizarre behavior. In order for RotatedDimensions to return their GeometricExtents, they not only have to be inserted in the database, but also the outermost transaction with which they were inserted has to be committed first.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.