one more.. Z elevation..

Discussion in 'AutoCAD' started by Jon Baker, Jun 11, 2004.

  1. Jon Baker

    Jon Baker Guest

    How can I add a Z elevation to a selected 2d point (setq pt1..)?

    I have a lisp routine that asks me to pick point one (pt1) and then point 2 (pt2) then the lisp calculates the elevation by entering the slope. well what I would like to do is add a point to the user selected pt2 but at the elevation that the routine calculated. I have no idea where to begin.. sorry..
     
    Jon Baker, Jun 11, 2004
    #1
  2. Jon Baker

    bob.at Guest

    Jon,

    you can use something like this:
    ; pt2 is the position of new point z is the calculated elevation
    (command "_.point" (list (car pt2) (cadr pt2) z))

    bob.at
     
    bob.at, Jun 11, 2004
    #2
  3. Jon Baker

    Jon Baker Guest

    thank you..
    Jon,

    you can use something like this:
    ; pt2 is the position of new point z is the calculated elevation
    (command "_.point" (list (car pt2) (cadr pt2) z))

    bob.at
     
    Jon Baker, Jun 12, 2004
    #3
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.