@Kent1Cooper wrote:
@_gile wrote:
Please, explain how you get the arcs data in AutoCAD and which data are exported to Excel....
With AutoCAD, an arc is typically defined by a center point, a radius, a start angle and an end angle....
I agree. What are you sending to Excel? All the discussion including supplying the start point and end point would require extracting something from AutoCAD by calculation, and not directly from an Arc's entity data, or VLA properties, or whatever you're using. AutoCAD doesn't store the endpoints, only the center and radius and the angles from the center to the start and end points. Given those, and that the direction an Arc "proceeds" between them is always counter-clockwise, there is no ambiguity for AutoCAD about the direction, but I'm not familiar with the kinds of inputs needed in Inventor, or whether there are optional ways of defining an Arc there, as there are in AutoCAD [which has something like eight ways to draw one, but once drawn, only one way to store the information defining it].
I have replied but my post is missed. I will try to re-write it again by remembering. Admin has to pay attention cause posts are missing after few minutes!
Hello to all,
Thank you very much for the many replies. Let's start with the answering.
1. What are you sending to Excel?
Some people on this community helped me with the .lisp script. Whole discussion is available on the LINK
How script works? VIDEO
Script sends coordinates (x,y) of points for sketch entities (arcs and lines). For the arcs, script sends StartPoint, EndPoint and CenterPoint coordinates to excel worksheet. So, in the excel worksheet, one row represents one geometric entity. BUT, rows (entities) are not sorted, so I am using an macro to sort them by clicking on the button "Run CST". Now, entities are sorted (entity below entity) as they are connected in AutoCAD.
This is very important cause my Inventor code works by method "WHERE PREVIOUS ENTITY ENDS, NEXT ENTITY BEGIN".
Where is a problem?
Inventor code to create arc looks like on the image below, where "True" means CCW direction of the arc.

The problem happens when the new arc has different direction than previous. For me, it is not a problem to create few more "IF Statements" but what to put into it? How to catch change of direction? I need some "mathematical" or "geometrical position" conditions to easily recognize change of direction in AutoCAD.
2. whether there are optional ways of defining an Arc there, as there are in AutoCAD
Inventor has two (few) possible ways of creating a arc programmatically. First one is "Three Point Arc", second one is "Center Point Arc". Unfortunately, "Three Point Arc" method has the software (Inventor) issue to create arc, in some special cases.
Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.