只需一步,快速开始
(while (< n lenbar) (command "ucs" "d" "*") (command "ucs" "s" "mo") (setq bar (car (nth n listbar))) (setq jd1 (cadr (nth n listbar))) (setq jd2 (caddr (nth n listbar))) (setq pt1 (nth (- jd1 1) listjd)) (setq pt2 (nth (- jd2 1) listjd)) (setq len (distance pt1 pt2)) (if (= ww nil) (setq ww (/ len wbar)) ) (command "layer" "m" "bar" "C" 3 "bar" "") (command "_.pline" pt1 "w" 0 0 pt2 "") (setq ss1 (entlast)) (command "ucs" "n" "ob" (entlast)) (setq pt3 (nth 3 (nth (1- bar) listfor))) (setq pt3 (list 0 (/ pt3 b1))) (setq pt4 (nth 7 (nth (1- bar) listfor))) (setq pt4 (list len (- 0 (/ pt4 b1)))) (setq pt1 (list 0 0)) (setq pt2 (list len 0)) (command "layer" "m" "moment" "C" 7 "moment" "") (command "_.pline" pt1 "w" 0 0 pt3 pt4 pt2 "") (setq ss2 (entlast)) (command "_.hatch" "line" bhat "90" ss1 ss2 "") (command "ucs" "r" "mo") (setq n (1+ n)) )
使用道具 举报
您需要 登录 才可以下载或查看,没有账号?注册
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-11-28 00:51 , Processed in 0.178049 second(s), 27 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.