BIM Q&A | How to Convert Strings into AutoCAD Commands
The eval command allows you to execute strings as AutoCAD commands. Similar to many scripting languages, eval processes its parameters as commands.
Before execution, eval scans the command line twice to perform all necessary replacements. This makes it especially useful for variables that require more than a single scan to function correctly. Such variables are often called complex variables.
Command format: eval __AI_T_SC0__
Note: eval can process multiple parameters separated by semicolons, executing them according to their individual characteristics. There is no limit on the number of parameters.
Example usage:
Execute the command stored in the string variable s:
s="ls"eval $s















Must log in before commenting!
Sign Up