ibach Posted July 10, 2018 Share Posted July 10, 2018 Whenever I change DWGUNITS to 4, close the dwg and reopen, it is back to 3... WTF?! HELP!!! I'll go mad! It does have some aec rubbish I can not get rid off either. I do believe it was created or edited by some non autocad software... Quote Link to comment Share on other sites More sharing options...
ibach Posted July 10, 2018 Author Share Posted July 10, 2018 further lookup showed that running following lisp routine creates the problem... (defun gc:GetDictEntries (dict / result) (and (= (type dict) 'ENAME) (setq dict (entget dict))) (while (setq dict (vl-member-if (function (lambda (x) (= (car x) 3))) (cdr dict))) (setq result (cons (cons (cdar dict) (cdadr dict)) result)) ) (reverse result) ) ;; delete all AEC* (defun c:removeAEC () (foreach dict (gc:GetDictEntries (namedobjdict)) (if (wcmatch (car dict) "*AEC*") (foreach entry (gc:GetDictEntries (cdr dict)) (entdel (cdr entry)) ) (entdel (cdr dict)) );fin if ) (princ) );fin defun Quote Link to comment Share on other sites More sharing options...
ibach Posted July 17, 2018 Author Share Posted July 17, 2018 changed to lisp section... http://www.cadtutor.net/forum/showthread.php?104730-removeAEC.LSP-and-UNITS-change-problem&p=705163#post705163 Quote Link to comment Share on other sites More sharing options...
CyberAngel Posted July 18, 2018 Share Posted July 18, 2018 Thank you for sharing your solution. It may be helpful to future drafters. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.