arri
Utente Master
Regione: Lombardia
14951 Messaggi |
Inserito il - 26 aprile 2012 : 12:53:58
|
LayerDirectorV1-1.lsp
Program Description
This program uses a Visual LISP Command Reactor to automatically set the current layer when a command is called, proceeding to reset to the previous current layer when the command is completed. The chosen layer will be created if it doesn't already exist in the drawing.
The data controlling the layer to be set when certain commands are called is tabulated at the top of the code - this may be altered and expanded to suit the user's requirements.
The first item of each list in the table is the name of a command to trigger a layer change. This command name should be the full command name, not a command alias. The command is not case-sensitive and may use wildcards.
To give a few examples, "[DM]TEXT,TEXT" will cue a layer change for the Text, DText and MText commands; "*LEADER" will cue a layer change for the Leader, QLeader and MLeader commands.
The second item is the name of the Layer to be set to current when the command is called. This layer will be created if not present in the active drawing.
The program will automatically enable the Command Reactor when loaded, and the current layer will be automatically changed when any of the listed commands are called. The reactor may be subsequently disabled or enabled manually using the commands 'LDOFF' & 'LDON' respectively.
|
|