DakotaD
DakotaD

Reputation: 371

custom variables in object creation

Is it possible to use variables in the creation of objects in AutoCAD? For example, I would like to create a number of circles and have their diameter property determined by a custom variable. This would allow me to easily change the value of multiple objects after creation.

It seems like an easy thing to do, but I can't seem to find an answer to this question.

Clarification:
I simply want to have easy programmatic control over the defining characteristics of a number of objects for easy modification at a later date.

Upvotes: 0

Views: 363

Answers (2)

DakotaD
DakotaD

Reputation: 371

It doesn't seem possible do this in just one step, but using the parameteric tools allows some degree of programmatic change after object creation.

In the example of the circle, diameter control can be achieved using the DIMCONSTRAINT command in conjunction with a user defined parameter. Use PARAMETERS command to access all of the drawing's parameters.

Upvotes: 1

Parrish Husband
Parrish Husband

Reputation: 3178

If you're planning on using the in-process libraries, you can create a custom command that takes a parameter from the AutoCAD command line, which you could use to create your circles.

Upvotes: 0

Related Questions