Message 1 of 2
Lisp to change line type scale - Please Help

Not applicable
02-10-2016
04:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Recently someone has posted this macro to change a layer colour to all layers with a name starting with '0'.
I was wandering if anyone would know how to achieve this to line type scale within an Xref.
All the line types have the prefix 'RTA_' just like the example has '0'.
The line types need to be manually changed to suit the scale of the drawing through the Layer Properties Manager now and it is very time consuming.
We need this to work for scales 1:100, 1:200, 1:500, etc.
(defun c:BOOM ()
(command "._setbylayer"
(setq lyrs (ssget "_x" '((-4 . "<not") (8 . "0*") (-4 . "not>"))))
"" "yes" "yes" "._-layer" "color" 250 "~0*" "")
(princ)
)
Any help would be greatly appreciated.
Thank you in advance.