
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Programmers,
I got a lisp code that can change selected dimensions to required colour. I request you to change to make this code. The lisp code should change the dimensions inside all selected blocks to required colour.
(defun c:CDIM (/ ss)
(if (and (setq *clr* (acad_colordlg
(cond (*clr*)
(t (setq *clr* 256))
)
)
)
(princ "\n Select Dimension to change their color :")
(setq ss (ssget "_:L" '((0 . "*DIMENSION"))))
)
((lambda (x / sn)
(while (setq sn (ssname ss (setq x (1+ x))))
(if (vl-remove-if-not
'(lambda (o) (and (eq (car o) 100) (wcmatch (cdr o) "AcDbAlignedDimension,AcDbRotatedDimension")))
(entget sn)
)
(mapcar '(lambda (e)
(vla-put-textcolor e *clr*)
(vla-put-extensionlinecolor e *clr*)
(vla-put-DimensionLineColor e *clr*)
)
(list (vlax-ename->vla-object sn))
)
)
)
)
-1
)
)
(princ)
)
(vl-load-com)
Solved! Go to Solution.