<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Retrieving the edges of my projected sketch3D over a face in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/retrieving-the-edges-of-my-projected-sketch3d-over-a-face/m-p/12393819#M160591</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I am completely new to inventor and now I am working on&amp;nbsp; 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&amp;nbsp; 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&amp;nbsp; 3D positions for these start and end points of the (edges or segments)&amp;nbsp; with also the normal of the surface at each point, then export these data to a dxf file so&amp;nbsp;I,ve started with this code but then I got the edges of the model&amp;nbsp; not of the edges I want for the Curve1&lt;/P&gt;&lt;P&gt;//{&lt;BR /&gt;// List&amp;lt;Tuple&amp;lt;Point, Vector&amp;gt;&amp;gt; result = new List&amp;lt;Tuple&amp;lt;InventorPoint, Vector&amp;gt;&amp;gt;();&lt;BR /&gt;// List&amp;lt;double&amp;gt; edgeLengthsList = new List&amp;lt;double&amp;gt;();&lt;BR /&gt;// List&amp;lt;Edge&amp;gt; orderedEdgesList = new List&amp;lt;Edge&amp;gt;();&lt;/P&gt;&lt;P&gt;// // Find all the edges of the curve&lt;BR /&gt;// // Get the active component definition&lt;BR /&gt;// PartComponentDefinition compDef = partDoc.ComponentDefinition;&lt;BR /&gt;// List&amp;lt;Edge&amp;gt; edgesList = new List&amp;lt;Edge&amp;gt;();&lt;BR /&gt;// // Iterate through all surface bodies in the component&lt;BR /&gt;// foreach (SurfaceBody surfaceBody in compDef.SurfaceBodies)&lt;BR /&gt;// {&lt;BR /&gt;// // Iterate through all edges in the surface body&lt;BR /&gt;// foreach (Edge edge in surfaceBody.Edges)&lt;BR /&gt;// {&lt;BR /&gt;// edgesList.Add(edge);&lt;/P&gt;&lt;P&gt;// }&lt;BR /&gt;// }&lt;BR /&gt;&amp;nbsp;so please if some one can guide me from where I can get this data&amp;nbsp; if Iam working on a part and I attached an image of the file&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="work file.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1296050i0D8965F9D496A3FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="work file.png" alt="work file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 11:20:02 GMT</pubDate>
    <dc:creator>rasha_haifa</dc:creator>
    <dc:date>2023-11-22T11:20:02Z</dc:date>
    <item>
      <title>Retrieving the edges of my projected sketch3D over a face</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/retrieving-the-edges-of-my-projected-sketch3d-over-a-face/m-p/12393819#M160591</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I am completely new to inventor and now I am working on&amp;nbsp; 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&amp;nbsp; 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&amp;nbsp; 3D positions for these start and end points of the (edges or segments)&amp;nbsp; with also the normal of the surface at each point, then export these data to a dxf file so&amp;nbsp;I,ve started with this code but then I got the edges of the model&amp;nbsp; not of the edges I want for the Curve1&lt;/P&gt;&lt;P&gt;//{&lt;BR /&gt;// List&amp;lt;Tuple&amp;lt;Point, Vector&amp;gt;&amp;gt; result = new List&amp;lt;Tuple&amp;lt;InventorPoint, Vector&amp;gt;&amp;gt;();&lt;BR /&gt;// List&amp;lt;double&amp;gt; edgeLengthsList = new List&amp;lt;double&amp;gt;();&lt;BR /&gt;// List&amp;lt;Edge&amp;gt; orderedEdgesList = new List&amp;lt;Edge&amp;gt;();&lt;/P&gt;&lt;P&gt;// // Find all the edges of the curve&lt;BR /&gt;// // Get the active component definition&lt;BR /&gt;// PartComponentDefinition compDef = partDoc.ComponentDefinition;&lt;BR /&gt;// List&amp;lt;Edge&amp;gt; edgesList = new List&amp;lt;Edge&amp;gt;();&lt;BR /&gt;// // Iterate through all surface bodies in the component&lt;BR /&gt;// foreach (SurfaceBody surfaceBody in compDef.SurfaceBodies)&lt;BR /&gt;// {&lt;BR /&gt;// // Iterate through all edges in the surface body&lt;BR /&gt;// foreach (Edge edge in surfaceBody.Edges)&lt;BR /&gt;// {&lt;BR /&gt;// edgesList.Add(edge);&lt;/P&gt;&lt;P&gt;// }&lt;BR /&gt;// }&lt;BR /&gt;&amp;nbsp;so please if some one can guide me from where I can get this data&amp;nbsp; if Iam working on a part and I attached an image of the file&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="work file.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1296050i0D8965F9D496A3FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="work file.png" alt="work file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 11:20:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/retrieving-the-edges-of-my-projected-sketch3d-over-a-face/m-p/12393819#M160591</guid>
      <dc:creator>rasha_haifa</dc:creator>
      <dc:date>2023-11-22T11:20:02Z</dc:date>
    </item>
  </channel>
</rss>

