convert centerlines to sketch line using API

convert centerlines to sketch line using API

Anonymous
Not applicable
456 Views
1 Reply
Message 1 of 2

convert centerlines to sketch line using API

Anonymous
Not applicable

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

0 Likes
Accepted solutions (1)
457 Views
1 Reply
Reply (1)
Message 2 of 2

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi 15985329236,

 

See the example on your duplicate thread:

http://forums.autodesk.com/t5/inventor-customization/using-api-change-centerlines-to-sketchlines/m-p...

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes