Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Say for instance I have the following sketch lines:
I know that using the API I can measure the angle between them and (in this case) the API will return 105° because that is the smallest possible angle.
If, however I position these same lines such that the angle is > 180°:
The API will return 90° because again that is the smallest angle between these two lines.
What I need to find however is the angle in a specific direction (in this case clockwise, but not always).
Assume for a moment that the first line to be measured is always the green line in the position(s) below, what API call can I make use of to achieve this?
Thanks,
Alex.
PS. I have tried using the following:
Dim Angle As Double = Measure.Angle(Object1.Name, Object2.Name)
Dim OtherAngle as Double = Vector1.AngleTo(Vector2)
----------------------------------------------------------------
Alex Fielder
Inventor Expert
https://github.com/alexfielder/
LinkedIn - Github Inventor Extension Server - Bonkers polygon iLogic thing
Top ten iLogic Tips - API Shortcut In Google Chrome - Assembly Extrusion Example
Alex Fielder
Inventor Expert
https://github.com/alexfielder/
LinkedIn - Github Inventor Extension Server - Bonkers polygon iLogic thing
Top ten iLogic Tips - API Shortcut In Google Chrome - Assembly Extrusion Example
Solved! Go to Solution.