Results 1 to 3 of 3

Thread: LAYER MACRO HELP PLEASE!

  1. #1
    Member
    Join Date
    2014-02
    Posts
    3
    Login to Give a bone
    0

    Default LAYER MACRO HELP PLEASE!

    Hi all,

    I'm trying to create a macro that selects all objects in a drawing, sets the layer to "0" and changes the color of all the objects to "color 8" to be used when cleaning architecture files. I'm fairly new to macros and haven't the slightest idea how this would be accomplished.

    We are using some version of AutoCAD LT on almost all of our PCs, so I'm pretty sure a LIPS routine is out of the question. Ideally, I'd like it to be a simple command string that I can add to one of our custom ribbon panels.

    If you have any ideas on how this can be accomplished or where I can find the information on how this can be done, please let me know! I'm kind of on a tight timeline to get this done (Due May 9th) so any immediate help would be greatly appreciated!

    Thanks in advance!!

  2. #2
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: LAYER MACRO HELP PLEASE!

    Code:
    select
    all
    
    change
    p
    
    p
    la
    0
    c
    8
    save as text with a .scr extension, run with the SCRIPT command.

    [note the blank final line - this is essential.]

  3. #3
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: LAYER MACRO HELP PLEASE!

    Quote Originally Posted by kyle554700 View Post
    I'm trying to create a macro that selects all objects in a drawing, sets the layer to "0" and changes the color of all the objects to "color 8" to be used when cleaning architecture files.
    Macro:

    Code:
    ^C^C^P._chprop;_all;;_la;0;_c;8;;^P
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. Layer description macro
    By Franz Hein in forum AutoCAD Customization
    Replies: 1
    Last Post: 2008-06-02, 01:38 AM
  2. Change layer colour macro
    By Maurice.148748 in forum AutoCAD Customization
    Replies: 35
    Last Post: 2007-12-03, 02:05 PM
  3. Adding a Layer Current macro to a CUI
    By moshe.118064 in forum AutoCAD CUI Menus
    Replies: 3
    Last Post: 2006-08-25, 03:01 PM
  4. macro for turning layer off?
    By jvoight in forum AutoCAD Customization
    Replies: 4
    Last Post: 2005-07-21, 08:36 PM
  5. Macro for deleting layer filters - Using AutoCAD LT
    By briand.87290 in forum AutoCAD Customization
    Replies: 6
    Last Post: 2005-07-13, 02:26 PM

Tags for this Thread

Posting Permissions

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