returning the value of an angle.

returning the value of an angle.

ganderson
Advocate Advocate
666 Views
6 Replies
Message 1 of 7

returning the value of an angle.

ganderson
Advocate
Advocate

I have a code snipet that displays the angle from the X axis for a line:

public static void AngleFromXAxis()
        {
            Point2d pt1 = new Point2d(2, 5);
            Point2d pt2 = new Point2d(5, 2);

            Application.ShowAlertDialog("Angle from XAxis: " +

                                        pt1.GetVectorTo(pt2).Angle.ToString());
                                         pPtRes = acDoc.Editor.GetPoint(pPtOpts);

        }

is there a way to capture that value in my  program

something like:

    double myAngle = ...?

              Thanks,

                   ~Giovonnae

0 Likes
Accepted solutions (1)
667 Views
6 Replies
Replies (6)
Message 2 of 7

kerry_w_brown
Advisor
Advisor

is there a way to capture that value in my  program

something like:

    double myAngle = ...?

              Thanks,

                   ~Giovonnae


 

Yes, there is.

 

What have you tried ??

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
Message 3 of 7

ganderson
Advocate
Advocate

I find your reply most unhelpful.

0 Likes
Message 4 of 7

kerry_w_brown
Advisor
Advisor

@Anonymous wrote:

I find your reply most unhelpful.


That's a pity, because if you'd stopped to think about it you have the answer in your own posted code snippet.

 

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 5 of 7

ganderson
Advocate
Advocate

not helping!

 

0 Likes
Message 6 of 7

kerry_w_brown
Advisor
Advisor
Accepted solution

 

This :

snip_20160207143623.png


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 7 of 7

ganderson
Advocate
Advocate

Thank you.

0 Likes