It's that old "Can't reenter LISP" thing, by which it doesn't evaluate the (strcat) function but
returns it unevaluated. You might try defining the new text string using (strcat), and saving it as
a variable, *before* getting into the CHT command, and then feeding that variable into CHT the way
you feed F1 in. But (without trying it) I wonder whether that might return the variable name
instead of the value stored in it, since your F1 is not a variable but an actual text string, and it
seems to accept that without the ""s that you need to use in Lisp expressions.
--
Kent Cooper
wrote...
It it the same result. Here is a copy of what it does:
Command: USERS1
Enter new value for USERS1, or . for none <"">: 123
Command: CHT
Change text, Version 1.02, (c) 1990-1993 by Autodesk, Inc.
Select text to change.
Select objects: all
677 found
Select objects:
Verifying the selected entities -- please wait.
190 text entities found.
Height/Justification/Location/Rotation/Style/Text/Undo/Width: t
Search and replace text. Individually/Retype/:g
Match string : F1
New string : (strcat "F1" (getvar "USERS1"))
Can't reenter LISP.
Changed 8 text lines.
ORIGINAL STRING ON SCREEN:
F1-1
RESULT ON SCREEN:
(strcat "F1" (getvar "USERS1"))-1