Jump to content

Dim roundoff filter selection lisp


hxbtdtna

Recommended Posts

Dear all, 

I'm searching a method to select(filter) dimensions with dim roundoff different from origin.

I found that in this forum had a solution but the lisp did not work: https://www.cadtutor.net/forum/topic/46937-dim-roundoff-selection-lisp/

Please help me to solve this lisp.

 

 

DIMS_ROUNDOFF HIGHLIGHT_1.lsp

Edited by hxbtdtna
Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

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