Let's say you draw in Imperial/Architectural units and you overrode the text content in a Dimension to say 27', and you want the alternate dimension to be in meters.
This code [in simplest terms] turns the left one above into the right one, in minimal testing:
(defun C:DOAT ; = Dimension Override Alternate Text
(/ dim txt)
(setq
dim (car (entsel))
txt (getpropertyvalue dim "DimensionText")
)
(setpropertyvalue dim "DimensionText"
(strcat txt " [" (rtos (cvunit (distof txt) "inch" "meter") 2 2) "m]")
)
)
Obviously, if you draw in meters and want the alternate value in feet, or some other combination, aspects of that can be edited to suit.
It does not check that you selected a Dimension, or whether the Dimension has override text content, or some other things it could do, but see whether it does what you want in the right situation.
If you want to change the overridden, you would need to replace the entire with-alternate text override with just the new without-alternate override, and run the command on that again.
Kent Cooper, AIA