<?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 Find position of workpoint in flat pattern that was created in the folded model in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12047501#M154261</link>
    <description>&lt;P&gt;I'm exporting sheet metal parts as flat patterns using the api.&amp;nbsp; I have no problem unfolding the part and finding all the operations (holes, slots, outter edges, etc) but I need to export the position of text on the part as well.&amp;nbsp; The problem is text doesn't show up in the flat pattern and it appears Inventor doesn't attempt to figure out where the text would land in the flat pattern.&amp;nbsp; From my research, only brep objects are transferred to the flat pattern.&amp;nbsp; The method FlatPattern.GetFlatPatternEntity() seemed promising at first.&amp;nbsp; I converted the text origin into a 3d point and and input that into the method with no luck.&amp;nbsp; I tried creating a workpoint at the text origin and that didn't work either. Both returned null.&amp;nbsp; Is there something I'm missing?&amp;nbsp; It doesn't make sense to me that I can input an edge,&amp;nbsp; GetFlatPatternEntity(edge), and get back the edge in the flat pattern along with the position of it's end points but I can't ask where a specific point on a face will end up in the flat pattern.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;foreach (Inventor.TextBox text in sketch.TextBoxes)&lt;BR /&gt;{&lt;BR /&gt;Inventor.Point2d textOrigin = text.Origin;&lt;/P&gt;&lt;P&gt;PlanarSketch pSketch = (PlanarSketch)sketch;&lt;/P&gt;&lt;P&gt;Inventor.Point2d textOriginCopy = textOrigin.Copy();&lt;/P&gt;&lt;P&gt;Inventor.Point textOrigin3d = pSketch.SketchToModelSpace(textOriginCopy);&lt;/P&gt;&lt;P&gt;Inventor.Point textOrigin3dcopy = textOrigin3d.Copy();&lt;/P&gt;&lt;P&gt;WorkPoint textOrigin3dwork = partDoc.ComponentDefinition.WorkPoints.AddFixed(textOrigin3dcopy);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;object flatPoint1 = (object)sheetdef.FlatPattern.GetFlatPatternEntity(textOrigin3dcopy);&amp;nbsp; //returns null&lt;/P&gt;&lt;P&gt;object flatPoint2 = (object)sheetdef.FlatPattern.GetFlatPatternEntity(textOrigin3dwork); //returns null&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnPGNFG_0-1687281713751.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1230298i4B0DDFC8818F5C3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnPGNFG_0-1687281713751.png" alt="johnPGNFG_0-1687281713751.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 17:53:02 GMT</pubDate>
    <dc:creator>johnPGNFG</dc:creator>
    <dc:date>2023-06-20T17:53:02Z</dc:date>
    <item>
      <title>Find position of workpoint in flat pattern that was created in the folded model</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12047501#M154261</link>
      <description>&lt;P&gt;I'm exporting sheet metal parts as flat patterns using the api.&amp;nbsp; I have no problem unfolding the part and finding all the operations (holes, slots, outter edges, etc) but I need to export the position of text on the part as well.&amp;nbsp; The problem is text doesn't show up in the flat pattern and it appears Inventor doesn't attempt to figure out where the text would land in the flat pattern.&amp;nbsp; From my research, only brep objects are transferred to the flat pattern.&amp;nbsp; The method FlatPattern.GetFlatPatternEntity() seemed promising at first.&amp;nbsp; I converted the text origin into a 3d point and and input that into the method with no luck.&amp;nbsp; I tried creating a workpoint at the text origin and that didn't work either. Both returned null.&amp;nbsp; Is there something I'm missing?&amp;nbsp; It doesn't make sense to me that I can input an edge,&amp;nbsp; GetFlatPatternEntity(edge), and get back the edge in the flat pattern along with the position of it's end points but I can't ask where a specific point on a face will end up in the flat pattern.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;foreach (Inventor.TextBox text in sketch.TextBoxes)&lt;BR /&gt;{&lt;BR /&gt;Inventor.Point2d textOrigin = text.Origin;&lt;/P&gt;&lt;P&gt;PlanarSketch pSketch = (PlanarSketch)sketch;&lt;/P&gt;&lt;P&gt;Inventor.Point2d textOriginCopy = textOrigin.Copy();&lt;/P&gt;&lt;P&gt;Inventor.Point textOrigin3d = pSketch.SketchToModelSpace(textOriginCopy);&lt;/P&gt;&lt;P&gt;Inventor.Point textOrigin3dcopy = textOrigin3d.Copy();&lt;/P&gt;&lt;P&gt;WorkPoint textOrigin3dwork = partDoc.ComponentDefinition.WorkPoints.AddFixed(textOrigin3dcopy);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;object flatPoint1 = (object)sheetdef.FlatPattern.GetFlatPatternEntity(textOrigin3dcopy);&amp;nbsp; //returns null&lt;/P&gt;&lt;P&gt;object flatPoint2 = (object)sheetdef.FlatPattern.GetFlatPatternEntity(textOrigin3dwork); //returns null&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnPGNFG_0-1687281713751.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1230298i4B0DDFC8818F5C3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnPGNFG_0-1687281713751.png" alt="johnPGNFG_0-1687281713751.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 17:53:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12047501#M154261</guid>
      <dc:creator>johnPGNFG</dc:creator>
      <dc:date>2023-06-20T17:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find position of workpoint in flat pattern that was created in the folded model</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12047533#M154262</link>
      <description>&lt;P&gt;I wanted to do something similar but I never found a good solution. If I need to find a point both in the flatpattern and the folded model then I make a very small hole in the folded model at the point that I need to find. Then I look op that hole in the flatpattern. (If anyone knows a better solution I would like to know about it.) But I see that you want text. If you are working with Inventor 2023 or newer that you have a special command for this. Have a look at the Mark command.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-8B8DD53E-2E54-43D4-8E7B-7B90CAEB4BFA" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-8B8DD53E-2E54-43D4-8E7B-7B90CAEB4BFA&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It has some interesting extra options.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 18:09:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12047533#M154262</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2023-06-20T18:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find position of workpoint in flat pattern that was created in the folded model</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12047561#M154264</link>
      <description>&lt;P&gt;Creating a small hole was my next idea but that seems like such a goofy way to go about this.&amp;nbsp; The software I am writing will be used by customers so there's no guarantee they will have 2023 but it's good to know that is an option now! I'll play around with it, thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 18:17:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12047561#M154264</guid>
      <dc:creator>johnPGNFG</dc:creator>
      <dc:date>2023-06-20T18:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find position of workpoint in flat pattern that was created in the folded model</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12047797#M154270</link>
      <description>&lt;P&gt;Cut/Emboss the text on the model.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 20:12:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12047797#M154270</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2023-06-20T20:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find position of workpoint in flat pattern that was created in the folded model</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12049726#M154286</link>
      <description>&lt;P&gt;This is very easy job.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@2A0F083D272D63CF5E4A44A10756DF5D/emoticons/1f600.png" alt=":grinning_face:" title=":grinning_face:" /&gt;&lt;/P&gt;&lt;P&gt;Sketch in sheetmetal part has option&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-D71458AB-F0D3-431B-B195-D6FC00B90ED0" target="_blank" rel="noopener"&gt;PlanarSketch.CopyToFlatPattern Property&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be set manually or using API.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelNavara_0-1687346512511.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1231010i4CDC41CBE9AEFFC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelNavara_0-1687346512511.png" alt="MichaelNavara_0-1687346512511.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-06-21_13-23-00.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1231011i25462AB117EEE58C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2023-06-21_13-23-00.jpg" alt="2023-06-21_13-23-00.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 11:24:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12049726#M154286</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2023-06-21T11:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find position of workpoint in flat pattern that was created in the folded model</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12050642#M154309</link>
      <description>&lt;P&gt;Bingo! Thank you, that makes life way easier&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 15:36:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/find-position-of-workpoint-in-flat-pattern-that-was-created-in/m-p/12050642#M154309</guid>
      <dc:creator>johnPGNFG</dc:creator>
      <dc:date>2023-06-21T15:36:01Z</dc:date>
    </item>
  </channel>
</rss>

