Originally Posted by
Zoeyanne
Could a lisp be written to only remove the atgpro?
This seems to work on my end, just be sure the ATGPRO dictionary's name is spelled correctly:
Code:
(vl-load-com)
(defun c:c:DeleteAtgProLData (/ *error* acDoc)
(defun *error* (msg)
(if acDoc
(vla-endundomark acDoc)
)
(cond ((not msg)) ; Normal exit
((member msg '("Function cancelled" "quit / exit abort"))) ; <esc> or (quit)
((princ (strcat "\n** Error: " msg " ** "))) ; Fatal error, display it
)
(princ)
)
(vla-startundomark
(setq acDoc (vla-get-activedocument (vlax-get-acad-object)))
)
(vlax-for x (vla-get-dictionaries acDoc)
(if
(and
(vlax-property-available-p x 'name)
(= "AUTOTAGPRO" (strcase (vla-get-name x)))
)
(vla-delete x)
)
)
(*error* nil)
)