Lisp to change line type scale - Please Help

Lisp to change line type scale - Please Help

Anonymous
Not applicable
1,109 Views
1 Reply
Message 1 of 2

Lisp to change line type scale - Please Help

Anonymous
Not applicable

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.

0 Likes
1,110 Views
1 Reply
Reply (1)
Message 2 of 2

dbroad
Mentor
Mentor

Why aren't you using annotative linetype scaling using msltscale = 1, ltscale = 1, psltscale =1, celtscale =1?  You shouldn't ever have to adjust the linetype scale for a particular plot scale.

 

Any change you make to an xref's linetype scale will be lost when the file is reloaded.  You need to make ltscale changes in the source files.

Architect, Registered NC, VA, SC, & GA.
0 Likes