Stuck on trying to get system variable input for DIESEL

Discussion in 'AutoCAD' started by Joe, Aug 1, 2003.

  1. Joe

    Joe Guest

    I am attempting to create a button to lock all layers, except the
    current one. I don't have experience using diesel, but suspect that
    this is the way to do it. This is the macro as I have it now, but I
    have something wrong...

    ^C^C-la lo *;un &(getvar, clayer)

    The first part;

    -la lo *;

    will lock all the layers. Then for the second part

    un &(getvar, clayer)

    my intent is to continue with the Layer command for Unlocking, and get
    DIESEL to return the text of the current layer.

    What am I doing wrong?
     
    Joe, Aug 1, 2003
    #1
  2. Joe

    R.K. McSwain Guest

    Here is one way.
    (command "._layer" "_Lock" "*" "_Unlock" (getvar"clayer") "")
     
    R.K. McSwain, Aug 1, 2003
    #2
  3. Joe

    Mike Weaver Guest

    Joe,
    I'm in the middle of a publish right now, so I can't check this, but try
    replacing the & with a $

    ^C^C-la lo *;un $(getvar, clayer)


    Mike Weaver
     
    Mike Weaver, Aug 1, 2003
    #3
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.