Naming Dims in autocad

Naming Dims in autocad

Anonymous
Not applicable
762 Views
3 Replies
Message 1 of 4

Naming Dims in autocad

Anonymous
Not applicable

Hi all,

 

Using the API, is it possible to "name" dims in a 2D drawing and, based on what the dim is "named" preform math on the dim and display the result nest to the existing dim?

0 Likes
763 Views
3 Replies
Replies (3)
Message 2 of 4

norman.yuan
Mentor
Mentor

What API are you taking about (COM/ObjectARX .NET/LISP/ObjectARX C++)?

 

Dimension object in different APIs does not have "Name" property. However, you can attach XData/ExtensionDictionary to tag the dimensions in interest. Then later you can search for dimensions in drawing by the attached data and do things you need from there.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 4

Anonymous
Not applicable

Thanks for the reply.  I do not know what type of API, as I am mainly doing research to see if what I need done is even possible.  The "name" property would not be necesary, only a way to differentiate between different dims in order to specify what functions to preform on the value of the dim.

0 Likes
Message 4 of 4

fenton_webb
Autodesk
Autodesk

What you are asking is possible in LISP, VBA, .NET and ObjectARX. If I were you, someone who knows VBA I'm guessing, I'd go to VB.NET and use the ActiveX API using COM interop - that way you are using .NET with your familiar VBA functions and libs




Fenton Webb
AutoCAD Engineering
Autodesk

0 Likes