明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1968|回复: 4

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

[复制链接]
发表于 2010-5-11 12:24:00 | 显示全部楼层 |阅读模式

command 如何调 find ,layer ,style等有对话框的功能,而不显示对话框。

我看到过很多这样代码如:

(command "style" "kk" "黑体" "" "" "" "" "")

(command "layer" "n" "hid" "c" "2" "hid" "lt" "hidden" "hid" "")

(command "layer" "n" "hat" "c" "6" "hat" "")

这种的代码,但是不知道具体的规则是什么,这个在什么地方能够查到,有相关的学习资料嘛

发表于 2010-5-11 13:17:00 | 显示全部楼层

在命令行输入:

-style

-layer

发表于 2010-5-11 13:39:00 | 显示全部楼层


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 "")
....
实务上依 命令列执行的回应值 来加以对映

 楼主| 发表于 2010-5-11 15:19:00 | 显示全部楼层

调用find能实现嘛.

发表于 2010-5-11 20:08:00 | 显示全部楼层

AutoCAD尚未提供.... (新版则未详)

您可参考这儿的讨论
http://discussion.autodesk.com/forums/thread.jspa?threadID=348129

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-10-2 01:23 , Processed in 0.177531 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表