只需一步,快速开始
(defun c:xx( )
(setq pt0 (list 1000 0)) ;块 插入点pt0(command "insert" "2boli" pt0 "" "" 0); (setq la (entget (entlast)))(command "array" pt0 r 1 4 1000); )
;最后两句不会写 意思是 块阵列一行四列 间矩1000
使用道具 举报
(setq p(entget(entlast)))好像不起作用去掉算了
下一句改成
(command "array" (entlast) "" "R" "1" "4" "1000" )
或(command "array" "w" pause pause "" "R" "1" "4" "1000" )
非常感谢
(command "array" (entlast) "" "R" "1" n cd )
我的列是个变量 n ,及间矩也是变量cd
语法过不去,请教
已解决,
n 用getint,不能用getreal
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-2-22 16:33 , Processed in 0.170359 second(s), 25 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.