Results 1 to 1 of 1

Thread: Using LISP to work with Layer Keys

  1. #1
    Administrator RobertB's Avatar
    Join Date
    2001-08
    Location
    Dallas TX USA
    Posts
    5,847
    0 Did you find this post helpful? Yes

    Lightbulb Using LISP to work with Layer Keys

    There is an .arx module that may be loaded that will provide some additional AutoLISP functions to help with layer keys. Although the documentation is somewhat dated, the functions are still useful.

    The .arx module is AecMgrLisp.arx as of AutoCAD Architectural/MEP 2009.

    The following sample code purges existing layer key styles and then loads the specified style.

    Code:
    (cond ((not (member "aeclmgrlisp.arx" (arx))) (arxload "AecLMgrLisp")))
    (setq keyName "Sparling Version 3.2") ; <- this is the current layer key
    (command "AecPurgeLayerStyles" "_y")
    (AecImportLayerKeyingStyle
      "P:\\Acad\\Layer Standards\\Sparling Layer Standard.dwg"
      keyName)
    (AecSetCurrentLayerKeying keyName)
    A description of the functions is attached.
    Attached Files Attached Files
    Last edited by RobertB; 2009-09-17 at 04:01 PM. Reason: Added link to function descriptions.
    R. Robert Bell
    Design Technology Manager
    S P A R L I N G
    Opinions expressed are mine alone and do not reflect the views of Sparling.

Similar Threads

  1. Layer keys for Devices
    By dcanfield in forum AMEP General
    Replies: 4
    Last Post: 2009-02-07, 12:43 AM
  2. Layer Naming Standards and Layer Keys... ??
    By moon47 in forum AMEP General
    Replies: 3
    Last Post: 2008-08-26, 07:09 PM
  3. Using LISP to work with Layer Keys
    By RobertB in forum AMEP FAQ (Read only)
    Replies: 0
    Last Post: 2008-04-29, 05:48 PM
  4. Layer keys for AIA 4.0
    By Cosmo in forum CAD Standards
    Replies: 1
    Last Post: 2008-02-05, 03:13 PM
  5. Command Shortcut keys have ceased to work
    By mgb3 in forum AutoCAD General
    Replies: 9
    Last Post: 2006-02-21, 10:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •