- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to write a script that changes layers within a dwg to specific colors.
Here is an example of the code:
Layer
T *
ON *
UN *
S 0
M BUILDING
M LIFT
C 47 BUILDING
C 255,140,26 LIFT
S 0
The script works for all layers allocated an index color but fails to work for layers with a true or color book shade.
When I load the script the following message is displayed and I don’t know how to proceed.
Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile/Xref]: C
New color [Truecolor/COlorbook] : 255,140,26
A color number or standard color name is required.
It works when I type in New color [Truecolor/COlorbook] : T Red,Green,Blue: 255,140,26 but this is time consuming if I have to do this for all Truecolor/COlorbook layers each time.
Please note I am not experienced in Autolisp so any help would be greatly appreciated.
Thanks in advance.
Solved! Go to Solution.