Jump to content

Dimedit


vnanhvu

Recommended Posts

I have some drawing, but someone modify textdim. I usually "dimedit" > "home" for change textdim is changed become actual value.

Who is faster to do it ?

Thank all !

Link to comment
Share on other sites

Here is one that my teacher found online and used on us in class to correct any dims that people modified. It corrects any dimoverrides automatically.

 

;|TIP1149.LSP:     ORG.LSP     Original Dimension     (c)1995, D.A. Longhenry

Original Dims.LSP

Link to comment
Share on other sites

That seems a bit overkill with very little, if no, error trapping. There is no need to change any SystemVariables and furthermore, those that are changed in the code won't be reset if the user hits Esc at the prompt (a likely scenario considering the frequency with which most users punch the Esc key). Also, there is no check for a valid SelectionSet and no SelectionSet filter either.

 

I know its not your code, I just wanted to point out the above points.

 

I would approach it this way:

 

(defun c:test ( / ss i e )
 (if (setq ss (ssget "_:L" '((0 . "*DIMENSION") (1 . "*?*"))))
   (repeat (setq i (sslength ss))
     (setq e (entget (ssname ss (setq i (1- i)))))
     (entmod (subst (cons 1 "") (assoc 1 e) e))
   )
 )
 (princ)
)

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