Help with viewport selection

Discussion in 'AutoCAD' started by Marco Jacinto, Sep 14, 2004.

  1. Hi,

    I'm trying to select two viewports in one layout whit this

    (ssget "_X" (list (0 . "VIEWPORTS")(cons 410 Layout)))

    the selection I get contains 3 viewports, I know that one of
    them is the Layout viewport, my question is,
    How can I select the two that I want, without the layout viewport?

    Besides I don't want to use

    (ssget "_C" pt1 pt2 (list (0 . "VIEWPORTS")(cons 410 Layout)))

    but it seems to be the only way I can see.

    TIA

    Saludos

    Marco Jacinto
     
    Marco Jacinto, Sep 14, 2004
    #1
  2. Couple of things:

    VIEWPORT not VIEWPORTS

    You must also quote each item in the list, except
    (cons .....)

    (ssget
    "_X"
    (list
    '(0 . "VIEWPORT")
    (cons 410 Layout)
    '(-4 . "/=")
    '(69 . 1)
    )
    )
     
    Jason Piercey, Sep 14, 2004
    #2
  3. Marco Jacinto

    Jeff Mishler Guest

    Hint: The Viewport that has the lowest number Handle is the one that you
    don't want.........
     
    Jeff Mishler, Sep 14, 2004
    #3
  4. I think the option Jason gives is better, but thanks anyway.

    Saludos

    Marco Jacinto
     
    Marco Jacinto, Sep 14, 2004
    #4
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.