help with auto lisp

Discussion in 'AutoCAD' started by rmilcsik, Jan 31, 2005.

  1. rmilcsik

    rmilcsik Guest

    I am am rank beginner at lisp. Can anyone tell me the code to do the following:

    I want to pick 2 points on the screen, get the angle of these two points, and store the angle value in a variable to use later in the program.

    thanks.
     
    rmilcsik, Jan 31, 2005
    #1
  2. Try using these functions

    getpoint
    getangle
    setq


    --
    Autodesk Discussion Group Facilitator



    and store the angle value in a variable to use later in the program.
     
    Jason Piercey, Jan 31, 2005
    #2
  3. rmilcsik

    BillZ Guest

    (setq p1 (getpoint "\nPick first point: <> ")
    p2 (getpoint p1 "\nPick second point: <>")
    an1 (angle p1 p2)
    )


    Bill
     
    BillZ, Jan 31, 2005
    #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.