注册 登录
明经CAD社区 返回首页

crazylsp的个人空间 http://www.mjtd.com/?369855 [收藏] [复制] [分享] [RSS]

日志

2012-12-08

已有 604 次阅读2012-12-8 15:16 |个人分类:|系统分类:开发| block

;;不炸开块提取块内对象 LJS BY 2012 12 07 参考了《属性按选择顺序加1》的程序
(defun c:test ()
 (if (and   
           (setq e(nentsel"\nSelect Block with Attrib 选择带属性图块 :"))
           (setq en(car e) inspt(cadr e))
           (setq ent (entget en ))
           (= (cdr(assoc 0 ent)) "INSERT")
           ;(= (cdr(assoc 66 ent)) 1)                    
   )(progn
     (foreach n ent
       ( setq ent (entget(entnext(cdr(assoc -1 ent)))) entg ent  )
       (entmake (cdr entg))
       (setq ee(entlast) enth(entget ee))
       (command "move" (entlast) "" "non"'(0 0) "non"inspt )
     );for
 )) ;if
  (princ)
)


路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-6 19:07 , Processed in 0.153221 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部