Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I found this lisp on a old thread and want to see if someone can add to it? Current lisp selects all dims that are forced an moves them to a new layer. The problem is that our dim styles LINES and TEXT Colors are forced. so there is no visual as to what dims where selected, unless you isolate the new layer. is there a way to for the lisp to move this to a different color (magenta) or change properties to by layer so that it takes on the new layer color properties? i don't want move the select dims to a different dim style as we have too may different styles.
thanks you fore your time
(defun c:test2 ( / ss en ed n dt new old report) (setq oldcmd (getvar "cmdecho")) (setvar "cmdecho" 0) (setq n 0) (command "layer" "make" "Fake_Dims" "color" 6 "" "") (prompt "Select dimensions to examine: ") (setq ss (ssget '((0 . "DIMENSION")))) (while (< n (sslength ss)) (setq en (ssname ss n)) (setq ed (entget en)) (setq dt (cdr (assoc 1 ed))) (if (not (or (= dt "") (wcmatch dt "*<>*"))) (progn (setq old (assoc 8 ed)) (setq new (cons 8 "Fake_Dims")) (setq ed (subst new old ed)) (setq old (assoc 62 ed)) (setq new (cons 62 256)) ;;bylayer (setq ed (subst new old ed)) (entmod ed) );progn ):if (setq n (1+ n)) );while (setvar "cmdecho" oldcmd) (princ) );defun (prompt "FindFakeDims loaded.") (princ)
Solved! Go to Solution.