vport id from user

Discussion in 'AutoCAD' started by blammo, Jan 11, 2004.

  1. blammo

    blammo Guest

    All,

    What's the best way to retrieve a viewport Id from a user. How can it
    be picked and the id sent back to LISP.

    For example, I can set the active viewport, but how does one ask the
    user to select one? is the viewport is not the active one when the user
    clicks it, then they need to click twice, once to make it active, and
    once to satisfy the getXXXX request. I suppose I could use a dummy
    value to get around the double vs single click responses.

    Can the act of activating the viewport be captured some how.

    I'm trying to assemble a list of viewports based on user clicks.

    TIA

    bobb
     
    blammo, Jan 11, 2004
    #1
  2. blammo

    John Uhden Guest

    Bob:
    I'd say to let them just pick a point inside the boundary of a viewport from
    PSpace. You build a function that calculates what viewport(s) surround the pick
    point. Or, use (entsel). But the former can work even if the viewport's layer
    is frozen (which I still find that long-time users do).
     
    John Uhden, Jan 11, 2004
    #2
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.