<?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 Re: iLogic form turning a Flat Pattern ON and OFF in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6394677#M64803</link>
    <description>&lt;P&gt;Since a flat pattern is 'generated' its not a simple matter to delete then turn around.&amp;nbsp; Deleting the pattern, or creating the pattern, mess with the object ID's and therefor any drawing that may be using that part.&amp;nbsp; HOWEVER... wrap your delete into a transaction, finish the transaction.&amp;nbsp; Then if you want it back, Undo the transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim trans As Inventor.Transaction = invApp.TransactionManager.StartTransaction(PartModel, "Delete Flat Pattern")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or something like that.&amp;nbsp; with code for deleting, then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;trans.end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;invApp.TransactionManager.UndoTransaction&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2016 22:01:12 GMT</pubDate>
    <dc:creator>JamieVJohnson2</dc:creator>
    <dc:date>2016-06-20T22:01:12Z</dc:date>
    <item>
      <title>iLogic form turning a Flat Pattern ON and OFF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6393847#M64797</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Hi there,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I'm after a little bit of help please.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;We have created a standard 'Steel Plate' using an ipt and iLogic form.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;We have added a flat pattern to steel plate and have managed to get the flat pattern to delete when selecting no to laser part on our iLogic form but can not get the flat pattern to turn back on when selecting yes on our iLogic form.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Is there some simply iLogic code out there to be able to turn the feature back on when selecting 'Yes' on form.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Please see attached screenshots of our iLogic form and features in part for clarification.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Any help would be appreciated.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Thanks&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 15:25:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6393847#M64797</guid>
      <dc:creator>Boggle88</dc:creator>
      <dc:date>2016-06-20T15:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic form turning a Flat Pattern ON and OFF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6394677#M64803</link>
      <description>&lt;P&gt;Since a flat pattern is 'generated' its not a simple matter to delete then turn around.&amp;nbsp; Deleting the pattern, or creating the pattern, mess with the object ID's and therefor any drawing that may be using that part.&amp;nbsp; HOWEVER... wrap your delete into a transaction, finish the transaction.&amp;nbsp; Then if you want it back, Undo the transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim trans As Inventor.Transaction = invApp.TransactionManager.StartTransaction(PartModel, "Delete Flat Pattern")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or something like that.&amp;nbsp; with code for deleting, then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;trans.end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;invApp.TransactionManager.UndoTransaction&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 22:01:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6394677#M64803</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2016-06-20T22:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic form turning a Flat Pattern ON and OFF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6395250#M64805</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Could you make the flatpattern always and make custom property that tells if the part is laser part or not? I gues&lt;/SPAN&gt;&lt;SPAN&gt;s&lt;/SPAN&gt;&lt;SPAN&gt; you have some kind of export ilogic rule for laser parts flat patterns and you could use that custom property to check if&amp;nbsp;export should be made.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 08:18:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6395250#M64805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-21T08:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic form turning a Flat Pattern ON and OFF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6395285#M64806</link>
      <description>Hi Jamie and Resto,&lt;BR /&gt;&lt;BR /&gt;Thanks for your replies.&lt;BR /&gt;&lt;BR /&gt;Jamie - Thanks for reply, will give this a try.and let you know how we get on.&lt;BR /&gt;&lt;BR /&gt;Risto - Yes we have steel plate already set up with flat pattern in so that when all plates are in main model we can run a macro to create all dxf files that need laser profiling but unfortunately this may change depending on the nature of the job. We definitely need to option to be able to go back and put flat pattern on through iLogic preferably would be best to accommodate user interface with our employees.&lt;BR /&gt;&lt;BR /&gt;Thanks for your time&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jun 2016 08:49:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6395285#M64806</guid>
      <dc:creator>Boggle88</dc:creator>
      <dc:date>2016-06-21T08:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic form turning a Flat Pattern ON and OFF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6395303#M64807</link>
      <description>&lt;P&gt;I mean that you don't have to delete the existing flat pattern if you control the dxf export with custom property. I think it will not do any harm if flat pattern exists even if it's not used. We&amp;nbsp;actually have similar work flow and we use custom property to control the dxf export.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your macro could work like this:&lt;/P&gt;&lt;P&gt;select "yes" in laser part option: create flat pattern(if not exist) and create/write "yes"-value to custom property&lt;/P&gt;&lt;P&gt;select "no":&amp;nbsp;&lt;SPAN&gt;create/write "no"-value to custom property and do nothing for flat pattern&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 09:07:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6395303#M64807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-21T09:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic form turning a Flat Pattern ON and OFF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6395410#M64808</link>
      <description>Thanks RAS for reply.&lt;BR /&gt;&lt;BR /&gt;Will give that ago hopefully this will work.&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Tue, 21 Jun 2016 10:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-form-turning-a-flat-pattern-on-and-off/m-p/6395410#M64808</guid>
      <dc:creator>Boggle88</dc:creator>
      <dc:date>2016-06-21T10:16:09Z</dc:date>
    </item>
  </channel>
</rss>

