@Sea-Haven wrote:
.... Using 2 defuns is simple though and works....
Yes, and it does have certain advantages over straight toggles like my suggestions.
If you have a "standard" Layer for Dimensions, but you sometimes want to ignore that and put a Dimension on whatever the current Layer is, my DLT command will set it to ignore that standard if it is current at the time, and when used again will restore that standard. But if you close the drawing when it's set to ignore ["."], you will "lose" the standard Layer name. So when you re-open the drawing, you will need to explicitly re-enter the standard [or have another command to do that], or DLT will just "toggle between" use-the-current-Layer and the same. I suppose it could be expanded to recognize the first time it's used, and if the current setting at the time is ".", to re-establish the standard Layer name into its list.
If you have only the two standard Layer names, my DLTA command will switch between them, but you can't easily tell which is the current setting, so you may not know when you need to use it. When you do use it, at least it reports the Layer it's been set to, so you can tell whether to use it again to go back, if it put you in the one you didn't want. And if you happen to set the Dimensions Layer to something other than those two, including the use-the-current-Layer option, DLTA will always change the setting to the first one in the list, which won't always be the one you want, so you could need to use it again.
Having two explicit Layer-assigning commands, rather than a toggle, means you can always go directly to the one you want, without needing to know whether it may already be the current setting.
Kent Cooper, AIA