BIM World
A Professional BIM Learning Platform


BIM Q&A | How to Convert Text Strings into Executable AutoCAD Commands

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

xuebim
Follow the latest BIM developments in the architecture industry, explore innovative building technologies, and discover cutting-edge industry insights.
← Scan with WeChat
Like(0) 打赏
BIM WORLD » BIM Q&A | How to Convert Text Strings into Executable AutoCAD Commands

Comment Get first!

Must log in before commenting!

 

BIM World, A Professional BIM Learning Platform

Stay updated on the latest architecture trends and share new building technologies.

Contact UsAbout Us

觉得文章有用就打赏一下小编吧

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

Account Login

By signing in, you agree toUser Agreement

Sign Up