Thaw layer in current VP via command line

Discussion in 'AutoCAD' started by San'dy, Dec 21, 2004.

  1. San'dy

    San'dy Guest

    Trying to do this for a button. Can it be done?
    Thanks,
     
    San'dy, Dec 21, 2004
    #1
  2. San'dy

    Randall Culp Guest

    Sure use VPLAYER and (getvar "CLAYER")
     
    Randall Culp, Dec 21, 2004
    #2
  3. San'dy

    San'dy Guest

    I will look into that. But, I was not clear. I need to thaw a specific layer
    (defpoints) in the current viewport, but that VP is not "active". Meaning I
    will be in PS and have no VP's active as in double clicking in them. I hope
    I am being clear.
    Thanks,
     
    San'dy, Dec 21, 2004
    #3
  4. San'dy

    T.Willey Guest

    If it is always defpoints then

    (command "_.vplayer" "_t" "defpoints" "" "")

    Tim
     
    T.Willey, Dec 21, 2004
    #4
  5. San'dy

    Paul Turvill Guest

    Now you're not being clear. If a viewport is "current" then it's also
    "active." In either case, the VPLAYER command is what you're looking for.
    ___
     
    Paul Turvill, Dec 21, 2004
    #5
  6. San'dy

    San'dy Guest

    Ok, when I used the term current I meant as in the layer manager column
    "current VP".
     
    San'dy, Dec 21, 2004
    #6
  7. San'dy

    San'dy Guest

    That only seems to work if the VP that defpoints is frozen in is active
    (double click). If I am in PS and no Vp's are active no, it does not thaw
    the layer in the "current VP" column of the layer manager.
    Thanks,
     
    San'dy, Dec 21, 2004
    #7
  8. San'dy

    krispy Guest

    Code:
    (command ".vplayer" "_T" "DEFPOINTS" "_S" (ssget '((0 . "VIEWPORT"))) "" "")
    
     
    krispy, Dec 21, 2004
    #8
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.