TuttoCAD Forum

TuttoCAD Forum
[ Home | Registrati | Discussioni Attive | Discussioni Recenti | Segnalibro | Msg privati | Sondaggi Attivi | Utenti | Album Fotografico | Download | | Cerca | FAQ ]
Nome Utente:
Password:
Salva Password
Password Dimenticata?

 Tutti i Forum
 1 - TuttoCAD Software
 AutoLISP
 Layer Director
 Nuova Discussione  Rispondi
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
I seguenti utenti stanno leggendo questo Forum Qui c'è:
Autore Discussione Precedente Discussione Discussione Successiva  

arri
Utente Master


Regione: Lombardia


14951 Messaggi

Inserito il - 26 aprile 2012 : 12:53:58  Mostra Profilo Invia a arri un Messaggio Privato  Rispondi Quotando
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.
  Discussione Precedente Discussione Discussione Successiva  
 Nuova Discussione  Rispondi
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
Vai a:
TuttoCAD Forum © 2001-2010 CADLandia Torna all'inizio della Pagina
Pagina generata in 0,26 secondi.