Constrain Input

Discussion in 'AutoCAD' started by michael montagne, Jul 22, 2004.

  1. I want to create a leader from 3 points entered by the user. After the
    first pick, I need a rubber band to the second pick but the angle needs
    to be constrained to 15 degree increments. Then ortho is set for the
    rubber band after pick 2. A lot like the qleader command. I can't see
    how to do this with VBA. It is the 15 degree part that I'm having
    trouble with.

    -mjm
     
    michael montagne, Jul 22, 2004
    #1
  2. I not sure if you can constrain to every 15 degrees but you may be able to
    achieve some sort of results with 'snapang '.
     
    Dale Levesque, Jul 22, 2004
    #2
  3. set your PolarSnap to 15 degrees.
     
    Paul Richardson, Jul 23, 2004
    #3
  4. That just offers a guide. It does not restrict the input to only 15
    degrees.

    -mjm
     
    michael montagne, Jul 27, 2004
    #4
  5. michael montagne

    HJohn Guest

    Try setting the SNAPANG=15 and ORTHOMODE=1 for the first two points and for the final point SNAPANG=0 and keep ORTHOMODE=1. Then, use the AddLeader method to build the leader.
     
    HJohn, Jul 27, 2004
    #5
  6. Almost, but it needs to be multiples of 15 degrees. Like qleader.

    -mjm
     
    michael montagne, Jul 27, 2004
    #6
  7. michael montagne

    HJohn Guest

    You said previously, "That just offers a guide. It does not restrict the input to only 15 degrees." If you want to be able to select any 15 degrees increment, then don't use SNAPANG instead use POLARANG=15 and AUTOSNAP=47
     
    HJohn, Jul 27, 2004
    #7
  8. It does not restrict the input to only 15 degrees.

    Use VBA to recalculate the correct point to the intersection of the line from the first point at a
    15 degree angle closest to your original second point and horizontal from your text.
     
    Allen Johnson, Jul 27, 2004
    #8
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.