Jump to content

Recommended Posts

Posted

I don't get it.  What do you mean " roundoff different from origin" ?

Do you mean dimensions where one of the points is not 0,0 ?

Posted

I suppose 'different from origin' means 'different from the default (dimstyle)'. So I think the OP is trying to select dimensions that have an override for the DIMRND setting (and/or the DIMDEC setting?). An example DWG may help to clarify things.

Posted

The following will select all dimensions with an overidden Dim Roundoff (DIMRND) setting:

(defun c:dimrndsel ( / e i s )
    (if (setq s (ssget "_X" '((0 . "*DIMENSION") (-3 ("ACAD")))))
        (repeat (setq i (sslength s))
            (setq i (1- i)
                  e (ssname s i)
            )
            (if (not (member '(1070 . 45) (cdadr (assoc -3 (entget e '("ACAD"))))))
                (ssdel e s)
            )
        )
    )
    (sssetfirst nil s)
    (princ)
)

 

Posted

Thank you very much Lee Mac.

It's all that i need.

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