command 如何调 find ,layer ,style等有对话框的功能,而不显示对话框。 -------------------------------------------------------------------- Command: (command "-style") -style Enter name of text style or [?] <STANDARD>: nil Enter name of text style or [?] <STANDARD>:
Command: (command "-layer") -layer Current layer: "0" Enter an option [?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock/stAte]: nil Enter an option [?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock/stAte]: Ref: initdia more: http://www.dailyautocad.com/2007/11/system-variables-filedia-cmddia.html ------------------------------------------------------------------------------ ...具体的规则是什么... AutoLisp 中的 commnad 函数是一个可以接受可变长度引数的函数 (command .....) 填入引数时得依据叫用命令的需求而长短不一 (command "Line" pt1 pt2 "") (command "Line" pt1 pt2 Pt3 "") .... 实务上依 命令列执行的回应值 来加以对映
|