- (Defun GetXrefLayList (xrefname / MainEnt NextEnt Lst lay)
- (setq MainEnt (tblobjname "BLOCK" xrefname)
- NextEnt (cdr (assoc -2 (entget MainEnt))))
- (While NextEnt
- (if (not (member (setq lay (cdr (assoc 8 (entget NextEnt)))) Lst))
- (setq Lst (cons lay Lst)))
- (setq NextEnt (entnext Nextent))
- )
- (reverse Lst)
- )
|