只需一步,快速开始
使用道具 举报
cqnj023发表于2004-3-21 22:27:00回复:(cqnj023)UNDO编组使用(command \"undo\" \"be\") .......................其它操作 (command \"line\" '(0 1) '(4 5) \"\") (command \"undo\" \"e\") (command \"u\"
(command "undo" "be") (setq ss (ssadd)) (command "-layer" "m" "fuzhu" "C" "6" "" "") (command "-style" "biaozhu" "宋体" "0.8" "0.7" "0" "" "" "") (setq wenj (getfiled "请选择" "d:\剖面线" "scr" 4)) (setq f (open wenj "r")) (setq a1 (read-line f)) (while (/= (wcmatch a1 "pline") t) (setq a1 (read-line f)) ) (setq a1 (read-line f)) (setq a2 a1) (while (/= a1 "") (if (wcmatch a1 ";*") (progn (setq zf (substr a1 2)) (command "line" a2 "@1<90" "") (ssadd (entlast) ss) (command "text" "s" "biaozhu" "J" "bc" "from" a2 "@1<90" "0" zf) (ssadd (entlast) ss) ) ) (setq a2 a1) (setq a1 (read-line f)) ) (close f) (command "script" wenj) (ssadd (entlast) ss) (command "-block" "dddd" jidan ss "") ;;jidian为其它地方获得 (command "-insert" "dddd" jidian "" "" "") (setq boundingbox (entlast)) ;;;;;boundingbox为子函数。(command "undo" "e")(command "u")
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-11-27 22:30 , Processed in 0.178394 second(s), 25 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.