Results 1 to 2 of 2

Thread: Macro For Xref Layers Freeze and change color

  1. #1
    Member
    Join Date
    2012-12
    Posts
    6
    Login to Give a bone
    0

    Default Macro For Xref Layers Freeze and change color

    Hey Guys ,
    I need help making a macro for changing xref layers color and freeze some layers.

    For example i need it to
    Freeze layers A-ANNO-SECT-IDEN & A-ANNO-DIMS ALSO CHANGE COLOR OF LAYER A-ANNO-GRID-TEXT & A-ANNO-COLUMN-HATCH TO COLOR 40.

    Regards
    Amr Aly

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: Macro For Xref Layers Freeze and change color

    Well, all layers included within an XREF, will have a pipe symbol ( | ) between the reference name of the XREF and the layer name. Your macro could use a wildcard symbol ( * ) followed by the pipe when supplying the names to the layer command.
    Code:
    -layer;freeze;*|A-ANNO-SECT-IDEN,*|A-ANNO-DIMS;c;40;*|A-ANNO-GRID-TEXT,*|A-ANNO-COLUMN-HATCH;;
    The above code should work, but may fall over if the layers are not present in your references.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Similar Threads

  1. Changing color of Xref layers based on color and layer name
    By tuerlinckx_peter862162 in forum AutoLISP
    Replies: 7
    Last Post: 2013-02-14, 06:46 PM
  2. Need to freeze layers in a xref file
    By cadd4la in forum AutoLISP
    Replies: 3
    Last Post: 2012-04-30, 08:19 AM
  3. Replies: 0
    Last Post: 2008-03-17, 02:07 AM
  4. Lisp to freeze all layers in an nested unloaded xref?
    By ilovemyjeep88 in forum AutoLISP
    Replies: 3
    Last Post: 2007-08-16, 08:00 PM
  5. Freeze Xref layers
    By jbenway in forum AutoCAD General
    Replies: 5
    Last Post: 2005-02-01, 07:24 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
  •