- 积分
- 5682
- 明经币
- 个
- 注册时间
- 2003-7-28
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2023-8-19 17:21:45
|
显示全部楼层
(defun SSgetdynblk-lst (lst mode / names filtn ss-newall);;按动态块名列表过滤
(setq ss-newall '())
(foreach name lst
(setq filtn (getublkname name))
(if (wcmatch (strcase mode t) "x,a,:e,:s,:e:s,:s:e,l,p")
(setq ss-new(ssget mode (list '(0 . "insert") (cons 2 filtn))))
(progn
(sssetfirst
nil
(setq ss-new (ssget (list '(0 . "insert") (cons 2 filtn))))
)
(ssget "i")
)
)
(setq ss-newall (append ss-newall (list ss-new)))
)
)
(SSgetdynblk-lst '("N-A0" "N-A1""N-A2") "x" )
|
|