@Anonymous wrote:
Hi all,
AutoCad removed a command a few years ago and it has affected a macro that I would use everyday.
Can someone suggest an alternative to this? The "DIM1" command used to work until 2016.
The macro looks like this
^C^C^P(command "dim1" "newtext" "<> VIF");^P
When you run the macro it updates selected dimensions to have VIF after the measurement.
Let's update you...
>> "updates selected objects"
command "-DIMSTYLE" "Apply" pause
Applying a value onto an existing object is one method.
Set environment first, then add a new object to the database is the other. When
finished, reset the environment. We will use a variation of this second method
to update a value of an existing dimension object.
In lieu of a text override, set DIMPOST, run command -DIMSTYLE and reset DIMPOST.
[to do a text override involves ENTMOD in LISP or use a VL method]
An alternate to resetting DIMPOST is to restore the dimension style.
All overrides will be removed.
This can be accomplished easily in LISP, don't know about LT.
Command "-DIMSTYLE" "Restore" (getvar 'DIMSTYLE).
For DIMPOST, to add a suffix, simply quote " VIF" (there is a space inside the quote).
The angles need not be present; but prefer showing them anyway.
To add a prefix, provide the angles in the suffix position "+/- <>".
I'll let you build the macro... for both LISP and LT...
???
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.