Turn off layers thru marked objects?

Discussion in 'AutoCAD' started by Rolf Strömberg, Oct 24, 2003.

  1. Hi,

    I really miss this feature: I want to turn off layers by marking objects
    having those layers, and then klick a button.

    Any ideas?

    Regards Roffe S
     
    Rolf Strömberg, Oct 24, 2003
    #1
  2. Depending on what version you are running you might have a "Bonus" or
    "Express" tool to do this and not know it.
    It was once called "layoff", and one to freeze layers was called "layfrz",
    if memory serves...
     
    Michael Bulatovich, Oct 24, 2003
    #2
  3. Rolf Strömberg

    Tom Berger Guest

    (defun c:layoff (/ en lay)
    (if (setq en (car (entsel)))
    (if (/= (setq lay (cdr (assoc 8 (entget en))))
    (getvar "clayer")
    )
    (command "._-layer" "_off" lay "")
    (princ "\nselected layer is current layer")
    )
    )
    (prin1)
    )

    Tom Berger
     
    Tom Berger, Oct 24, 2003
    #3
  4. Rolf Strömberg

    Mark Guest

    install your bonus or express tools man, for r14 and higher
     
    Mark, Oct 24, 2003
    #4
  5. Rolf Strömberg

    Tom Berger Guest

    Why should I? And the OP oviously doesn't have the express tools. And
    writing this function definitely doesn't take as long as installing
    the tools.

    T:)m Berger
     
    Tom Berger, Oct 24, 2003
    #5
  6. Rolf Strömberg

    Mark Guest

    bonus or express tools, tool then an s, that means more than one, as in
    around 25 extra tools on r14 and up to 40 new tools in 2004, or are you
    going to post lisp routines for each one?, what about isolate selected layer
    or freeze selected layer or unlock or lock selected layer or global change
    text or any number of other extremely usefull tools.

    install the tools rolf.
     
    Mark, Oct 25, 2003
    #6
  7. Thanx everybody for the tips. I chose to install Express Tools and it works
    splendid. By the way, I can´t understand why they did remove Express Tools
    after Acad2000. Too good?

    Regards Roffe S
     
    Rolf Strömberg, Oct 25, 2003
    #7
  8. Rolf Strömberg

    Tom Berger Guest

    They needed the money. BTW- in USA the express tools never came for
    free. But almost all functions could be programmed within just a few
    minutes (or probably even within seconds), and anyhow you can find
    most of them for free in the Net.

    Tom Berger
     
    Tom Berger, Oct 25, 2003
    #8
  9. They came back in again with 2004 - Obviously they found that no-one wanted
    to pay for them afterall.
    I've never quite understood why they didn't just integrate these tools into
    the main program though.

    Matthew
     
    Matthew Taylor, Oct 25, 2003
    #9
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.