Message 1 of 9
AcadLine.Angle verses regular function?

Not applicable
10-12-2007
02:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
At the moment I have a series of coordinate pairs that represent linear data. I need the angle of each of these "segments" and at the moment I create a temporary line and use the lines .Angle method to give me the values.
This works fine but I wondered if I can acheive the same thing WITHOUT having to create the line entities. I can't use AngleFromXAxis because that returns a different angle. But must be the exact same value that AcadLine.Angle returns. I want the same, from a function that is passed 2 arrays of double(0 to 2) entities.
Possible?
If so, I think it would improve my macros overall performance as I would not need to create all these temporary entities and delete them.
Thanks in advance.
Andrew
At the moment I have a series of coordinate pairs that represent linear data. I need the angle of each of these "segments" and at the moment I create a temporary line and use the lines .Angle method to give me the values.
This works fine but I wondered if I can acheive the same thing WITHOUT having to create the line entities. I can't use AngleFromXAxis because that returns a different angle. But must be the exact same value that AcadLine.Angle returns. I want the same, from a function that is passed 2 arrays of double(0 to 2) entities.
Possible?
If so, I think it would improve my macros overall performance as I would not need to create all these temporary entities and delete them.
Thanks in advance.
Andrew