Having Problem with using Polar Array Method

Having Problem with using Polar Array Method

Anonymous
Not applicable
398 Views
3 Replies
Message 1 of 4

Having Problem with using Polar Array Method

Anonymous
Not applicable
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.
0 Likes
399 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
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
0 Likes
Message 3 of 4

Anonymous
Not applicable
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.
-----
pi
A mathematical constant equal to approximately 3.1415926535897932.
-----
I always use the method of calculating it just in case I make a typo. The calculation actually equals the value you posted having 2 less decimal places than the constant specified in the help file.

Regards - Nathan
0 Likes
Message 4 of 4

Anonymous
Not applicable
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 . "Nathan Taylor" wrote in message news:[email protected]... > 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. > ----- > pi > A mathematical constant equal to approximately 3.1415926535897932. > ----- > I always use the method of calculating it just in case I make a typo. The calculation actually equals the value you posted having 2 less decimal places than the constant specified in the help file. > > Regards - Nathan
0 Likes