Custom Commands

I am attempting to customize the menus in Draftsight.

 

My first task is to add commands that will first change to a specific layer, and then draw a line.

 

I originally tried adding a new command, and then setting a menu to use that command, but nothing worked. I suspected my command string, so I edited my custom command to be identical to the existing LINE command, and it still did not work.

 

Next, i "duplicated" teh existing LINE command and renamed it. Now I get an "Audio Line" command that acts exactly like the LINE command, which is what I expected.

 

However, I an having some issues. It appears that sometimes, the "^C^C" at the beginning of teh command string is interpreted as "Cancel" or "Interrupt any running commands", and other times it is interpreted as a "_CLIPBOARDCOPY"

I downloaded the customization Guide V02, and both it and the help say :

"For Command string, type a command, command sequence, or command option.Start the expression with ^C^C to ensure a running command is cancelled when invoking the command orcommand sequence."

 

Is an up-to-date command string reference available?

 ____

 

UPDATE:

Even when I can get the ^C^C to work as an "interrupt any running commands", I still get an error on runing the custom command.

 

My string is:

 

*^C^C-layer set vx-audio-line; line

 

and the error occurs when the "vx-audio-line" is entered by the command. I get a messsage that says, "

"No matching Layer name found."

 

But the layer exists in the drawing, and I can change to it by manually entering:

-layer, "Enter"

set, "Enter"

vx-audio-line, "Enter"

 ___

2nd Update:

 

It appears that the command string is sending "vx-audio-line ", that is, the name of the layer with a space after it.

 

I can;t figure out how to make this work.

____

 

Andy