See the top rated post in this thread. Click here

Results 1 to 1 of 1

Thread: Using LISP to work with Layer Keys

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    2

    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
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

Similar Threads

  1. Schedule Keys should work with Shared Parameters
    By Wish List System in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2013-10-15, 11:26 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 Eric Wing 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
  •