Originally Posted by
RenderMan
(Inappropriate content)
... Seriously?
Originally Posted by
guardianfiredesign774457
Ok so it seems these codes you guys provided will turn even my title block and my blocks that i want red and other colors to be turned to 250
Is there a way to select only the iteams you want changed to be turned to 250? Like have the routine ask you to select all objects, grab them all then BOOM?
Just guessing:
Code:
(defun c:BOOM ( / *error* ss oss layerName layers)
(vl-load-com)
(if (setq ss (ssget "_:L" '((0 . "INSERT"))))
(progn
(vlax-for x (setq oss (vla-get-activeselectionset
(vla-get-activedocument
(vlax-get-acad-object))))
(if
(not (vl-position (setq layerName (vla-get-layer x)) layers))
(setq layers (cons layerName layers))))
(vla-delete oss)
(command
"._setbylayer"
ss
""
"yes"
"yes"
"._-layer"
"color"
250
(vl-string-right-trim
","
(apply 'strcat (mapcar '(lambda (x) (strcat x ",")) layers)))
""))
(prompt "\n** Nothing selected ** "))
(princ))