Hi,
I just started to get into Inventor API (I am using Inventor 2015).
The goal is to do some basic ray tracing in a 2D sketch (for the beginning ;-)).
API seams to be perfect for doing so (creating several sketchlines and manipulating them...).
So far I managed to create a specific amount of lines (and just for practicing changing their colors).
The problem now is to (automatically) extend these lines to already existing line and arc elements in the sketch.
I've gone through the API help, but didn't find a way to do it automatically (manually is no problem).
I would appreciate any kind of info š
thanks and best regards
Elmar
Unfortunately the area of sketch editing is an area where the API is lacking. The ability to extend and trim sketch entities is not currently supported by the API.
Hi Brian,
thanks for the fast reply.
I will try the "IntersectWithCurve" command. It should make me able to move the EndSketchPoint to that specific coordinate right?
thanks and best regards
Elmar
Hi Elmar,
yes, this is the correct direction. I wrote a blog on such topic a few months ago for Chinese customers, but I think it is not difficult for you to understand the demo code. The code covers 3 scenarios only: Line to Line, Line to Arc and Line to Spline. you will need to investigate the behaviors of Extend in UI, and design the code for more scenarios.
http://blog.csdn.net/autodeskinventorapi/article/details/17680531