"Freeze All" button creation.

Discussion in 'AutoCAD' started by Terry Robb, Apr 12, 2004.

  1. Terry Robb

    Terry Robb Guest

    I'm trying to write a macro for a button to freeze all layers not current in
    a drawing. I've done this before but have forgotten something. How do I
    invoke the "all" to select all layers not current in a macro.

    The macro will go something like this:
    ^c^c_-layer;f;;(this is where I want to reply "all" to the prompt- Select
    Objects)

    Can someone help me out here please?

    Thanks,
    Terry
     
    Terry Robb, Apr 12, 2004
    #1
  2. Use the asterisk wildcard (*)
     
    Michael Bulatovich, Apr 12, 2004
    #2
  3. To answer the OPs question,
    you add an "a" or "all" without the quotes where you would type this in the
    command line sequence.
    All you're really doing when you make a macro is mimicking the command line
    entry of the command
    but with semicolons or spaces where you would hit "enter"
     
    Michael Bulatovich, Jun 21, 2004
    #3
  4. (defun c:freeze-all-but-current ()
    (command "layer" "freeze" "*" "")
    )
     
    charlotte.conn, Jun 24, 2004
    #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.