Retrieving the edges of my projected sketch3D over a face

Retrieving the edges of my projected sketch3D over a face

rasha_haifa
Explorer Explorer
146 Views
0 Replies
Message 1 of 1

Retrieving the edges of my projected sketch3D over a face

rasha_haifa
Explorer
Explorer

Hello ,

I am completely new to inventor and now I am working on  a plugin that should retrieve the sketch 3D (Curve1)which is projected on a face (here it is plane face but later I need to use curve surface) and I want to get it as  edges or as a full path or complete trajectory not as separated entities for lines and points and etc ......in order then to sample it into small segments and then get the  3D positions for these start and end points of the (edges or segments)  with also the normal of the surface at each point, then export these data to a dxf file so I,ve started with this code but then I got the edges of the model  not of the edges I want for the Curve1

//{
// List<Tuple<Point, Vector>> result = new List<Tuple<InventorPoint, Vector>>();
// List<double> edgeLengthsList = new List<double>();
// List<Edge> orderedEdgesList = new List<Edge>();

// // Find all the edges of the curve
// // Get the active component definition
// PartComponentDefinition compDef = partDoc.ComponentDefinition;
// List<Edge> edgesList = new List<Edge>();
// // Iterate through all surface bodies in the component
// foreach (SurfaceBody surfaceBody in compDef.SurfaceBodies)
// {
// // Iterate through all edges in the surface body
// foreach (Edge edge in surfaceBody.Edges)
// {
// edgesList.Add(edge);

// }
// }
 so please if some one can guide me from where I can get this data  if Iam working on a part and I attached an image of the file 
work file.png

 

0 Likes
147 Views
0 Replies
Replies (0)