Results 1 to 6 of 6

Thread: Create All Layers in Current Layer Key Style

  1. #1
    Super Moderator dkoch's Avatar
    Join Date
    2003-03
    Location
    Philadelphia, PA
    Posts
    2,392
    Login to Give a bone
    0

    Default Create All Layers in Current Layer Key Style

    The attached ZIP file contains an AutoLISP file that defines a command called LKL that will generate all of the layers defined in the current Layer Key Style. It should work in ADT 3.3 through ACA 2009, although I have only tested this directly in 2004. (Most of the code deals with assuring the proper ARX file is loaded for the version of ADT/ACA being run - that was copied from another routine that has been tested in all of those versions.)

    Note that if a layer already exists in the drawing in which the command is run, the layer will be left "as is" (just like it is when an AEC command or tool references a Layer Key)>

    Also note that if Layer Key Overrides are enabled and any are set, the generated layer names will reflect the override settings.
    Attached Files Attached Files

  2. #2
    Time Lord Steve_Bennett's Avatar
    Join Date
    2015-12
    Location
    far, far, far away...
    Posts
    4,730
    Login to Give a bone
    0

    Default Re: Create All Layers in Current Layer Key Style

    You must spread some Reputation around before giving it to dkoch again.
    Genius. Pure Genius.
    Steve Bennett |BIM Manager
    Taylor Design | Adventures in BIM

  3. #3
    AUGI Addict
    Join Date
    2005-07
    Posts
    2,356
    Login to Give a bone
    0

    Default Re: Create All Layers in Current Layer Key Style

    That's awsome David, need to do some spreading as well, have a instead.

  4. #4
    Super Moderator dkoch's Avatar
    Join Date
    2003-03
    Location
    Philadelphia, PA
    Posts
    2,392
    Login to Give a bone
    0

    Default Re: Create All Layers in Current Layer Key Style

    Here is an updated version, that supports ADT 3.3 through ACA 2012.
    Attached Files Attached Files

  5. #5
    Member
    Join Date
    2006-12
    Posts
    12
    Login to Give a bone
    0

    Default Re: Create All Layers in Current Layer Key Style

    EXCELLENT!

  6. #6
    Member
    Join Date
    2015-12
    Posts
    49
    Login to Give a bone
    0

    Default Re: Create All Layers in Current Layer Key Style

    Thanks for the update!

Similar Threads

  1. Create segment labels on current layer
    By Wish List System in forum Civil 3D Wish List
    Replies: 0
    Last Post: 2013-11-05, 05:41 PM
  2. Use current layer as an option for label layers at creation
    By civil3d.wishlist1941 in forum Civil 3D Wish List
    Replies: 1
    Last Post: 2013-10-11, 06:23 PM
  3. Replies: 1
    Last Post: 2006-07-25, 03:33 PM
  4. Replies: 7
    Last Post: 2006-03-15, 08:30 AM
  5. Replies: 19
    Last Post: 2006-02-12, 11:06 PM

Posting Permissions

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