Getting the transient key of a face, corresponding to a MBD DiameterModelDimension object

Getting the transient key of a face, corresponding to a MBD DiameterModelDimension object

puschDB838
Observer Observer
49 Views
1 Reply
Message 1 of 2

Getting the transient key of a face, corresponding to a MBD DiameterModelDimension object

puschDB838
Observer
Observer

Hi,

I am accessing the "DiameterModelDimension" object to acces a dimensional annotation of a 3D-model (especially a diameter to a cylindrical face). I can get infomation like the dimension itself or a tolerance, but I want to know which face is annotated with that information and I can't find anything to get to the face or the transient key of the face.

0 Likes
Accepted solutions (1)
50 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor
Accepted solution

Hi @puschDB838.  From DiameterModelDimension object that you find, use its DiameterModelDimension.Definition property.  The Property says that it returns a ModelDimensionDefinition, but that is just the 'base type' which does not have the Property needed, and you should actually get a DiameterModelDimensionDefinition type object.  So, to take advantage of this, declare the variable ahead of time that is DiameterModelDimensionDefinition Type with no value yet, then set that variable's value from that Definition property.  Then, you can use its DiameterModelDimensionDefinition.Intent property go get the GeometryIntent object that was used to define the 'connection / attachment' between the geometry object and this annotation object.  If the GeometryIntent.IntentType property value (from the IntentTypeEnum) is the kGeometryIntent variation, then we can next use the GeometryIntent.Geometry property's value, which should be the geometry object that was specified when the GeometryIntent was created.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes