0 Members and 1 Guest are viewing this topic.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(defun c:xre ()(prompt "\N Select Element in XREF to RELOAD ")(xref-unload "reload"));;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(defun c:xru ()(prompt "\N Select Element in XREF to UNLOAD ")(xref-unload "unload"));;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(defun c:xrd ()(prompt "\N Select Element in XREF to DETACH ")(xref-unload "detach"));;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(defun xref-unload ( xref-action / old setlgth co t2 temp blkname)(command ".undo" "BEGIN") (setvar "cmdecho" 0) (setq old (ssget) setlgth (sslength old) co -1 t2 "t" ) (while (boundp 't2) (progn (setq co (1+ co) temp (entget (ssname old co)) blkname (cdr (assoc 2 temp)) t2 (ssname old (1+ co)) ) (command "-xref" xref-action blkname) ) ;; end progn ) ;; end while(setq co (1+ co))(princ)(command ".undo" "END")(princ));;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;