Having Problem with using Polar Array Method

Discussion in 'AutoCAD' started by SehgalS, Sep 28, 2004.

  1. SehgalS

    SehgalS Guest

    I have a problem in using polar array method in VBA. When I run it looks fine it array's the entity but when I measure the angle it doesnot array it correct. Their is lag in the angle. I feel it is probably because of using pi value. If somebdy know what pi value to use to correct this problem please let me know. If somebdy can suggest another approach I will be looking forward to it.
     
    SehgalS, Sep 28, 2004
    #1
  2. Const Pi As Double = 3.14159265358979

    This is the only PI value you want to use, even if it does not correct your
    problem (well, I actually copied it... I didn't calculate it myself, but I'm
    assuming it's the correct value ;-)

    If the angle is still not working, then there is something wrong with your
    calculation of it. If you know your angle in degrees, convert to radians
    by:

    AngleInRadians = AngleInDegrees * (PI / 180)

    HTH,
    James
     
    James Belshan, Sep 28, 2004
    #2
  3. Hi James,
    Heres a couple of examples from the help file.
    -----
    Atn Function Example
    This example uses the Atn function to calculate the value of pi.

    Dim pi
    pi = 4 * Atn(1) ' Calculate the value of pi.
     
    Nathan Taylor, Sep 29, 2004
    #3
  4. Hi Nathan,

    Having typed it once correctly I store it in a file and clipboard it from
    there when ever needed.

    I also put it in a default form which I intended to load into all new
    programs, but keep forgetting I've got it.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    ..
    calculation actually equals the value you posted having 2 less decimal
    places than the constant specified in the help file.
     
    Laurie Comerford, Sep 29, 2004
    #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.