That's the ticket! Thanks Dlanor.
Remind me how this last line reads again. I never can remember the second x and it's function.Code - Auto/Visual Lisp: [Select]
Check my thinking here...
The progression of layers is
S-* = Record issue layer, Bylayer color
S-*-NEW = New Construction Layer, color RED
S-*-FUTURE = Future Construction Layer, Color 15
S-*-56 = Secondary Revision/construction Layer, color 56
So the progression would be...
if objects are on layer S-BF-NEW, or any layer were "-NEW" is the suffix
based on user selected button move objects to the layer associated with that button... Could be "FUTURE" , "56" or Record issue layer
Am I thinking correctly that in order to move back to the record issue layer, "S-*" from any of the other layers, I would need to use something like aCode - Auto/Visual Lisp: [Select]in place ofCode - Auto/Visual Lisp: [Select]
I haven't had any success strip the "-56" Or "New" suffix and sending objects back to their record issue state withCode - Auto/Visual Lisp: [Select]
(substr...
The closest I get is S-BF- if my layer is S-BF-NEW. Can't seem to eliminate that last dash.Code - Auto/Visual Lisp: [Select]
This is OK for objects but will throw an error with layers as you cannot set a layer colour to bylayer, and the code involves creating layers
If suffix is "-NEW" andCode - Auto/Visual Lisp: [Select]
replaces "-NEW" with "-56" thenCode - Auto/Visual Lisp: [Select]
Will get you the base layer name andCode - Auto/Visual Lisp: [Select]
will replace the old suffix with the new suffix. To reset to base layer name the new_suffix should be a zero length string ("").I think (strlen "") will return zero, if moving from base to a suffix, but i'm on LT at the moment so can't test.Tested and works
FWIW the *error* function is not required either AND it should be localized!
Here is another way to remove the suffix:Code - Auto/Visual Lisp: [Select]
;; Remove -NEW note .. will remove -NEW-NEW-NEW at the end as well
Here is another way to remove the suffix:Code - Auto/Visual Lisp: [Select]
;; Remove -NEW note .. will remove -NEW-NEW-NEW at the end as well
Here is another way to remove the suffix:Code - Auto/Visual Lisp: [Select]
;; Remove -NEW note .. will remove -NEW-NEW-NEW at the end as well
Be careful with that approach Ron -Code - Auto/Visual Lisp: [Select]
"S-YOURLAYERNAM"
Thanks Ron,Glad to help :-)
Made some minor tweaks for two additional layer control routines. Now I have a suite of layer controls!!
Thanks for all the help folks.