In general:
This can all be in one (command) function, and within that, all in one Layer command.
It's not necessary to set a Layer current before assigning it a color using the Enter "" to give that color to the current Layer. You can assign a color to a Layer, or any number of Layers, whatever its On/Off/Thaw/Freeze condition. So this:
(COMMAND "S" "A-CABS-BASE" "C" "62" "" "ON" "A-CABS-BASE")
can be
(COMMAND "C" "62" "A-CABS-BASE" "ON" "A-CABS-BASE")
But if you do use the Set option on it, that will turn it on, so there's no need for the On option:
(COMMAND "S" "A-CABS-BASE" "C" "62" "")
But there's no need to Set all those Layers current one after the other.
And you can assign the same Color to, or Thaw, or turn On, or Freeze, any number of Layers together, with comma-separated lists of Layer names.
(command "_.layer"
"_thaw" "*"
"_color" 7 "Defpoints,A-DETAILS,S-DIMS"
"_color" 62 "A-CABS-BASE,A-CABS-WALL,A-CEILINGS,A-CLOSET-ROD,etc.,etc."
"_freeze" "A-DETAILS,A-DIMS,A-EQUIP, etc., etc."
....
"_set" "E-DIMS"
"" ; conclude Layer command
); end (command) function
Include an On option for those to be on when you're done. Also consider whether it's necessary to turn a Layer Off if it's going to be Frozen -- Freezing it alone should do.
Kent Cooper, AIA