Entmod a Viewport

Discussion in 'AutoCAD' started by tsigwing, Jan 13, 2004.

  1. tsigwing

    tsigwing Guest

    There has got to be a way to do this. Anybody got any ideas?
     
    tsigwing, Jan 13, 2004
    #1
  2. Jimmy Bergmark, Jan 13, 2004
    #2
  3. Given the subject matter of your last 3 posts you should search
    google for similar topics by Bobby Jones. Seems I recall he has
    already traveled this path, and IIRC, he canned that whole mess
    and went with (command ".vplayer") Bobby?
     
    Jason Piercey, Jan 13, 2004
    #3
  4. If you are wanting to thaw layers in a viewport, then I suggest the VPLAYER
    route or an ARX solution. You can relatively easily freeze layers in a
    viewport by manipulating the xdata, but I'd probably still suggest VPLAYER
    or ARX.

    If you are wanting to store and retrieve your own xdata then these functions
    will get you going in the right direction.

    http://code.acadx.com/visuallisp/042.htm
    http://code.acadx.com/visuallisp/041.htm
     
    Bobby C. Jones, Jan 13, 2004
    #4
  5. tsigwing

    tsigwing Guest

    Except that you can't execute the vplayer command within an autolisp program without using a convoluted mess of (VLA-SENDcommand doc* "vplayer ").

    There has got to be a cleaner way of acomplishing this.
     
    tsigwing, Jan 13, 2004
    #5
  6. tsigwing

    Jeff Mishler Guest

    Except the help files explictly state that you can't entmod a viewport.

    How is this "convoluted"?
    (command "VPLAYER" "FREEZE" LAYER "" "")

    And if you are trying to copy the status from one vp to another, collect
    the layers into a list and foreach or mapcar through the list.......

    Jeff

    program without using a convoluted mess of (VLA-SENDcommand doc*
    "vplayer ").
     
    Jeff Mishler, Jan 13, 2004
    #6
  7. tsigwing

    tsigwing Guest

    I cannot get that to run inside a lisp routine using ACAD2002.
     
    tsigwing, Jan 13, 2004
    #7
  8. <Snip>

    But doesn't this only work if that layout is active. Therefore you would
    have to change to each different layouts?

    So how to change just the layers for all viewports to defpoints globally?

    W. Kirk Crawford
    Rochester Hills, Michigan
     
    W. Kirk Crawford, Jan 31, 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.