Retrieving the edges of my projected sketch3D over a face
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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