10
40
31
初露锋芒
; Set Block Name(setq blk "Anchor-Wires-1")(setq count 1)(while (tblsearch "BLOCK" (strcat "Anchor-Wires-" (rtos count 2 0))) (setq blk (strcat "Anchor-Wires-" (rtos (1+ count) 2 0))) (setq count (1+ count))) (if (not (tblsearch "BLOCK" blk)) (progn ; Make block of Anchor Wires - Header (entmake (list '(0 . "BLOCK") (cons 10 (trans ins_pt 1 0)) (cons 2 blk) (cons 70 2) ) ) Rest of the Code
使用道具 举报
63
6297
6283
后起之秀
(setq nm "Anchor-Wires-" i 0)(while (tblsearch "BLOCK" (setq blk (strcat nm (itoa (setq i (1+ i)))))))
26
1495
20
(defun nw_block (fe / nw_set) (setq bc 1 bn "TEMP1") (while (tblsearch "BLOCK" bn) (setq bc (1+ bc) bn (strcat "TEMP" (itoa bc)))) (setq nw_set (ssadd)) (while fe (ssadd fe nw_set) (setq fe (entnext fe))) (command "_.UCS" "_World") (setvar "CECOLOR" "BYLAYER") (setvar "CELTYPE" "BYLAYER") (setvar "THICKNESS" 0) (command "_.BLOCK" bn '(0 0 0) nw_set "") (redraw))
本版积分规则 发表回复 回帖后跳转到最后一页
微信公众平台
扫描访问手机版
点击图片下载手机App
|关于我们|小黑屋|乐筑天下 繁体中文
GMT+8, 2025-3-12 01:15 , Processed in 1.391544 second(s), 62 queries .
© 2020-2025 乐筑天下
在线时间:10:00-17:00
暂无
扫一扫,关注我们
帮助中心
关于我们
下载APP客户端