Message 1 of 2

Not applicable
04-04-2016
01:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
How do I convert centerlines to sketch line to draw sketch in inventor using API.
Here is my code:
ObjectCollection oFitPoints = mInventorApp.TransientObjects.CreateObjectCollection();
Point2d oPoint1 = oTransGeom.CreatePoint2d(3, 5);
oFitPoints.Add(oPoint1);
Point2d oPoint2 = oTransGeom.CreatePoint2d(4, 0);
oFitPoints.Add(oPoint2);
Centerlines oCenterLines = default(Centerlines);
oCenterLines.Add(oFitPoints, ObjectTypeEnum.kLinearGeneralDimensionObject, LineTypeEnum.kLongDashDottedLineType, false);
Now I need to convert these centerlines into sketch lines so that I could draw sketch in Inventor.
With Regards,
Prarthana
Solved! Go to Solution.