<?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 code for &amp;quot;done&amp;quot; in form in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-quot-done-quot-in-form/m-p/11991431#M23144</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10724257"&gt;@berry.lejeune&lt;/a&gt;.&amp;nbsp; Is this iLogic Form an 'internal' one (saved within the Inventor document), or a 'Global' one?&amp;nbsp; If it is an internal one, then when you have one of those 'run a rule' type buttons selected in your Form Editor dialog, you should see an option down below labeled 'On Click Action', where you can specify what all should happen when you click that button.&amp;nbsp; Two of those options will include closing the Form.&amp;nbsp; If it is a Global form, then you may not have that option available.&amp;nbsp; But in Inventor 2024, we now have the ability to close an iLogic Form from an iLogic rule, using new System (built-in) iLogic snippets.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WCrihfield_0-1685107670797.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1219804i09E2F9EA03096160/image-size/large?v=v2&amp;amp;px=999" role="button" title="WCrihfield_0-1685107670797.png" alt="WCrihfield_0-1685107670797.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; The 'On Click Action' option is only available if the iLogic Rule is an 'internal' one.&amp;nbsp; Whether the iLogic Form itself is an 'internal' or 'Global' one makes no difference.&amp;nbsp; If the rule is an 'external' one, you will also not have that 'On Click Action' Option available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 13:53:28 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2023-05-26T13:53:28Z</dc:date>
    <item>
      <title>iLogic code for "done" in form</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-quot-done-quot-in-form/m-p/11990558#M23142</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running some codes and a form in a template IPT to create my parts.&lt;/P&gt;&lt;P&gt;In a form (picure 3) I fill out my dimensions and some parameters and hit the "done" button and then run the rule (picture 2) the part gets saved in a format of "project" "partnumber" in a defined&amp;nbsp; folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I added extra buttons in the form (picure 1) so I can immediatley run the rules from the form. But when I run one of these 2 rules, the form stays always open.&lt;/P&gt;&lt;P&gt;Is there a specific line of code that I can add to the iLogic what will also close the form?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 06:25:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-quot-done-quot-in-form/m-p/11990558#M23142</guid>
      <dc:creator>berry.lejeune</dc:creator>
      <dc:date>2023-05-26T06:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code for "done" in form</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-quot-done-quot-in-form/m-p/11990598#M23143</link>
      <description>You will need to create a new form object, with a label. Than you need to change the label text to done.&lt;BR /&gt;Best way to go is building it with vb.net and run that with ilogic or via an addin.</description>
      <pubDate>Fri, 26 May 2023 06:48:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-quot-done-quot-in-form/m-p/11990598#M23143</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2023-05-26T06:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code for "done" in form</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-quot-done-quot-in-form/m-p/11991431#M23144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10724257"&gt;@berry.lejeune&lt;/a&gt;.&amp;nbsp; Is this iLogic Form an 'internal' one (saved within the Inventor document), or a 'Global' one?&amp;nbsp; If it is an internal one, then when you have one of those 'run a rule' type buttons selected in your Form Editor dialog, you should see an option down below labeled 'On Click Action', where you can specify what all should happen when you click that button.&amp;nbsp; Two of those options will include closing the Form.&amp;nbsp; If it is a Global form, then you may not have that option available.&amp;nbsp; But in Inventor 2024, we now have the ability to close an iLogic Form from an iLogic rule, using new System (built-in) iLogic snippets.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WCrihfield_0-1685107670797.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1219804i09E2F9EA03096160/image-size/large?v=v2&amp;amp;px=999" role="button" title="WCrihfield_0-1685107670797.png" alt="WCrihfield_0-1685107670797.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; The 'On Click Action' option is only available if the iLogic Rule is an 'internal' one.&amp;nbsp; Whether the iLogic Form itself is an 'internal' or 'Global' one makes no difference.&amp;nbsp; If the rule is an 'external' one, you will also not have that 'On Click Action' Option available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 13:53:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-quot-done-quot-in-form/m-p/11991431#M23144</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-05-26T13:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code for "done" in form</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-quot-done-quot-in-form/m-p/11991467#M23145</link>
      <description>&lt;P&gt;Also, just in case you were not aware of this...if you launch the iLogic Form with an iLogic rule, as 'Modal' (pauses other code while it is open), you can actually get very basic feedback from that form that will let you know when and why the Form closed.&amp;nbsp; Below is a very basic example of an iLogic rule code utilizing this feature.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oFRValue As FormReturnValue = iLogicForm.Show("FormName", FormMode.Modal)
If oFRValue.Result = FormResult.Done Then
	MsgBox("The iLogic Form Was Closed With 'Done' Button.", vbInformation, "Form Closed")
ElseIf oFRValue.Result = FormResult.RuleButtonApplyAndClose Or _
	oFRValue.Result = FormResult.RuleButtonClose Then
	Dim sRuleName As String = oFRValue.RuleName
	MsgBox("The iLogic Form Was Closed By A Rule Button.  The Rule's Name = " &amp;amp; sRuleName, vbInformation, "Form Closed")
End If&lt;/LI-CODE&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN&gt;&lt;STRONG&gt; ACCEPT SOLUTION &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 13:45:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-for-quot-done-quot-in-form/m-p/11991467#M23145</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-05-26T13:45:46Z</dc:date>
    </item>
  </channel>
</rss>

