+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Forum Newbie
    Using
    AutoCAD 2013
    Join Date
    Jun 2012
    Posts
    6

    Default Is there any script to select all layers?

    Registered forum members do not see this ad.

    I want to hide all layers through scripting. Firstly I have to select all layers for the same.

    So, Can any1 tell me command to select all layers?

  2. #2
    Senior Member Blackfish's Avatar
    Using
    AutoCAD LT 2012
    Join Date
    Apr 2012
    Posts
    182

    Default

    A very simple script...

    Code:
    -LAYER
    OFF
    *
    Y
    or in macro

    Code:
    ^C^C_-LAYER;OFF;*;Y;
    The last 'Y' is to turn the current layer off too, if not put 'N' at the end.
    LT is still AutoCAD

  3. #3
    Forum Newbie
    Using
    AutoCAD 2013
    Join Date
    Jun 2012
    Posts
    6

    Default

    thank you, it is indeed a great help.

    Can you tell me, commands to create filters?

  4. #4
    Senior Member Blackfish's Avatar
    Using
    AutoCAD LT 2012
    Join Date
    Apr 2012
    Posts
    182

    Default

    If you're talking about Layer Filters from Layer Properties Manager the answer is LISP; you cannot use command line for filters.

    I've found this about making layer filter with LISP: http://forums.autodesk.com/t5/Visual...sp/m-p/1563704

    But the question is what do you need filters for? Maybe three is different solution for your goal.
    LT is still AutoCAD

  5. #5
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,798

    Default

    Registered forum members do not see this ad.

    What about "layiso" Isolate a layer then turn them back on can pick 1 2 3 etc

    Question if you turn off all layers wont dwg be a blank screen ?

    -la can also use wild cards -la off w*
    A man who never made mistakes never made anything

Similar Threads

  1. Renaming Layers by script
    By Maxelkat in forum AutoCAD Drawing Management & Output
    Replies: 8
    Last Post: 14th Feb 2012, 01:01 pm
  2. Plot multiple layers via script
    By pharrold in forum The CUI, Hatches, Linetypes, Scripts & Macros
    Replies: 1
    Last Post: 21st Jul 2010, 11:20 am
  3. Screen Xref Layers Lisp & Script
    By hoowahfun in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 19th Apr 2010, 07:24 pm
  4. A script to find and select odd angles?
    By c2designkitchen in forum AutoLISP, Visual LISP & DCL
    Replies: 13
    Last Post: 21st Feb 2010, 04:02 pm
  5. Change layers on command line (writing a script)
    By big_al_from_wigan in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 7th Mar 2007, 02:12 pm

Bookmarks

Posting Permissions

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