如题下面代码用于获取块内的子对象,以便于编辑。高手可飘过!!- (defun c:getbolcksubent ();得到块内对象
- (if (setq ss (ssget (list '(0 . "INSERT"))))
- (repeat (setq sslen (sslength ss))
- (setq ename (ssname ss (setq sslen (1- sslen))))
- (setq enlast (tblobjname "block" (cdr (assoc 2 (entget ename)))))
- (while (setq enlast (entnext enlast))
- (princ (entget enlast))
- )
- )
- )
- (princ)
- )
|