How to adjust angles...

Discussion in 'AutoCAD' started by Devin, Jul 25, 2003.

  1. Devin

    Devin Guest

    I want mathematically all angles 0-180 to = 90. also all angles 180-360 to
    = 270. Strange but I need it to happen to work one of my functions.

    Devin
     
    Devin, Jul 25, 2003
    #1
  2. Hi,

    In VBA you could use

    if angle => 0 and angle <= 180 then
    angle = 90
    elseif angle > 180 and angle <= 360 then
    angle = 270
    else
    Msgbox "Angle not between 0 and 360"
    end if

    You can convert the algorithm to lisp.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Jul 25, 2003
    #2
  3. Devin

    Rudy Tovar Guest

    Adjusting attributes?
     
    Rudy Tovar, Jul 26, 2003
    #3
  4. Devin

    Devin Guest

    Here's my formula...

    (defun iso_right ( ang base / )
    (setq
    ang (dtor ang)
    base (dtor base)
    )
    (+
    (abs (* (cos ang) base))
    ang
    )
    )

    But I haven't got it right :). It's a formula to convert an angle (angle in
    xy plane) and a base (y axis angle) into an adjusted xy plane ang for a
    right sided isometric.

    Any Ideas?

    Devin
     
    Devin, Jul 26, 2003
    #4
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.