rubber band

Discussion in 'AutoCAD' started by Jan van de Poel, Oct 8, 2004.

  1. Hi,
    i'm making a program where the user is asked to give two points somwhere on
    the screen.
    I wonder if it is possible to diplay the 'rubber band' between the first
    selected point and the second.
    Would be great also if the user could only select point that are exactly
    perpend to each other.

    Jan
     
    Jan van de Poel, Oct 8, 2004
    #1
  2. Never mind, found it in an older routine.
    Is this:
    (setq pt1 (getpoint "\n1st point "))
    (setq pt2 (getpoint pt1 "\n2nd point "))
    Works exactly the way i wanted it.

    Jan
     
    Jan van de Poel, Oct 8, 2004
    #2
  3. Jan van de Poel

    CJ Follmer Guest

    Also look into INITGET for additional abilities.

    (initget 32)
    (setq pt1 (getpoint "\n1st point "))
    (setq pt2 (getpoint pt1 "\n2nd point "))

    this would display a dashed rubber band

    cj
     
    CJ Follmer, Oct 8, 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.