
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I am using C# API.
I want to get intersection point from 2 curves.
SketchArc arc1 = ...(definition)
SketchLine chkLine1 = ...(definition)
LineSegment2d oLineSegment1 = chkLine1.Geometry;
ObjectsEnumerator objsEnum = oLineSegment1.IntersectWithCurve(arc1.Geometry);
int num1 = objsEnum.Count
After executing, I can see 1 line and 1 arc in Inventor.
If I check num1 in debug mode it shows 1 (intersection exists)
But cannot get point information.
From another posting there are some examples in VB like this
Set oInterPoint = oLineSegment.IntersectWithCurve(oSketchCircle.Geometry).Item(1)
oInterPoint.x = ...
This is VB so there is ObjectsEnumerator.Item() method.
In C# I cannot find method for Item[], or GetItem(), ...
If I can get intersection point coordinates it's OK however...
Solved! Go to Solution.