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

GeometricExtents of RotatedDimension

1 REPLY 1
Reply
Message 1 of 2
pavlos.katsonis
271 Views, 1 Reply

GeometricExtents of RotatedDimension

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?
1 REPLY 1
Message 2 of 2

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.

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