lxsl_hzj 发表于 2010-5-11 12:24:00

command 如何调 find ,layer ,style等有对话框的功能

<p>command 如何调 find ,layer ,style等有对话框的功能,而不显示对话框。</p><p>我看到过很多这样代码如:</p>(command "style" "kk" "黑体" "" "" "" "" "")<p>(command "layer" "n" "hid" "c" "2" "hid" "lt" "hidden" "hid" "")</p><p>(command "layer" "n" "hat" "c" "6" "hat" "")</p><p>这种的代码,但是不知道具体的规则是什么,这个在什么地方能够查到,有相关的学习资料嘛</p>

danxingpen 发表于 2010-5-11 13:17:00

<p>在命令行输入:</p><p>-style</p><p>-layer</p>

Andyhon 发表于 2010-5-11 13:39:00

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

lxsl_hzj 发表于 2010-5-11 15:19:00

<p>调用find能实现嘛.</p>

Andyhon 发表于 2010-5-11 20:08:00

<p>AutoCAD尚未提供.... (新版则未详)</p><p>您可参考这儿的讨论<br/><a href="http://discussion.autodesk.com/forums/thread.jspa?threadID=348129">http://discussion.autodesk.com/forums/thread.jspa?threadID=348129</a></p><p><a href="http://discussion.autodesk.com/forums/thread.jspa?threadID=348129"></a></p><p></p>
页: [1]
查看完整版本: command 如何调 find ,layer ,style等有对话框的功能