Selection Set on Z values

Discussion in 'AutoCAD' started by Stephen Rhodes, Jan 13, 2004.

  1. Hi,

    Is there a way I can simply select objects whose Z value is between 2 specific values? (ie between 0.0 and -50.0)

    Thanks in advance...Stephen Rhodes
     
    Stephen Rhodes, Jan 13, 2004
    #1
  2. Stephen Rhodes

    zeha Guest

    something like this

    (setq vmin (getvar "vsmin")
    vmin (list (car vmin)(cadr vmin) -50.0)
    vmax (getvar "vsmax")
    vmax (list (car vmax)(cadr vmax) -0.1)
    )
    (ssget
    (list
    (cons -4 "<AND")
    (cons -4 "*,*,>=")
    (cons 10 vmin)
    (cons -4 "*,*,<=")
    (cons 10 vmax)
    (cons -4 "AND>"))
    )
     
    zeha, Jan 13, 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.