Jump to content

Dwg REVERTS to original UNITS after -DWGU


Recommended Posts

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...