Layer Off by Selection routine

Discussion in 'AutoCAD' started by BillBill, Mar 31, 2005.

  1. BillBill

    BillBill Guest

    I know Express Tools has a layer off command but it only works on one layer at a time. Does anyone have a routine to turn layers off by selection?

    Thanks, Bill
     
    BillBill, Mar 31, 2005
    #1
  2. [OffLayPk]*^C^C^P-LAYER OF (cdr (assoc 8 (entget (car (entsel "Select Item
    on Layer to turn OFF: "))))) ^P\;

    It only does "one at a time," but instantly when you pick an object on it,
    and it recalls itself as long as you want to keep going. Invoke it, and
    start picking on things, and their layers are turned off. (You can do
    freeze and lock and unlock versions too, by changing the "OF" in there, and
    adjusting the prompt accordingly.)

    [Wrap it back into one line if the newsgroup system breaks it.]
     
    Kent Cooper, AIA, Mar 31, 2005
    #2
  3. BillBill

    BillBill Guest

    Thanks, I'll give it a try. I have also started to use the Isolate Object's Layer more. Just select what you want to remain and everything else is turned off.

    Bill
     
    BillBill, Apr 1, 2005
    #3
  4. BillBill

    Tim Decker Guest

    The "-layer" command can do that. Type or put in button

    -layer
    off
    <enter for select objects>

    you can then select by any means you want, when your done selecting, press
    enter and they will vanish.
     
    Tim Decker, Apr 1, 2005
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.