- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I found this lisp on one of the forums.
I have modified to my standards. Is there a way for all dims to update to the current style? the way its set up now, you have to give it a style.
if it can't be done is there a way to remove the dimension update? all i'm looking for is to place all dimensions to layer 35 color 10.
here is the lisp:
(defun c:TESTdims (/ *error* ocm lays ss)
(defun *error* (msg)
(if ocm (setvar "CMDECHO" ocm))
(if (not (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*"))
(princ (strcat "\n<< Error: " msg " >>")))
(princ))
(setq ocm (getvar "CMDECHO")
lays (vla-get-layers
(vla-get-ActiveDocument
(vlax-get-acad-object))))
(setvar "CMDECHO" 0)
(or (tblsearch "LAYER" "35")
(vla-put-color
(vla-add lays "35") 10))
(if (and (tblsearch "DIMSTYLE" "Standard")
(setq ss (ssget "_X" '((0 . "LEADER,DIMENSION")))))
(progn
(command "-dimstyle" "_R" "standard")
(command "_.chprop" ss "" "_LA" "35" "")
(command "-dimstyle" "_A" ss ""))
(princ "\n<< No Dimensions Found, or Dimstyle Doesn't Exist >>"))
(setvar "CMDECHO" ocm)
(princ))
Solved! Go to Solution.