- 积分
- 15341
- 明经币
- 个
- 注册时间
- 2002-2-4
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2003-3-18 15:39:00
|
显示全部楼层
只對用_ai_box , _ai_wedge, _ai_pyramid指令畫的圖有效
;;只對用_ai_box , _ai_wedge, _ai_pyramid指令畫的圖有效
(defun C:TT (/ SS SS1 N N1 NN ENT CHECK TMP PT_LIST)
(setq SS (ssget '((0 . "polyline"))))
(setq PT_LIST '())
(setq N 0)
(repeat (sslength SS)
(setq ENT (ssname SS N))
(setq CHECK (cdr (assoc 100 (reverse (entget ENT)))))
(cond
((= CHECK "AcDbPolygonMesh")
(setq PT_LIST1 '())
(command "_.COPY" ENT "" "0,0" "@")
(command "_.EXPLODE" (entlast))
(setq SS1 (ssget ""))
(setq N1 0)
(repeat (sslength SS1)
(setq ENT (entget (ssname SS1 N1)))
(setq NN 0)
(repeat 4
(if
(not
(member (setq TMP (cdr (assoc (+ 10 NN) ENT))) PT_LIST1)
)
(setq PT_LIST1 (append PT_LIST1 (list TMP)))
)
(setq NN (1+ NN))
)
(setq N1 (1+ N1))
)
(setq
PT_LIST (append
PT_LIST
(list
(append (list (length PT_LIST1)) (list PT_LIST1))
)
)
)
(command "_.ERASE" SS1 "")
)
)
(setq N (1+ N))
)
(command "_.ERASE" SS "")
PT_LIST
) |
|