<?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: Multiple windows when calling iLogicForm.Show() from external iLogic rule in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7014521#M283103</link>
    <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2017 11:12:27 GMT</pubDate>
    <dc:creator>fsdolphin</dc:creator>
    <dc:date>2017-04-13T11:12:27Z</dc:date>
    <item>
      <title>Multiple windows when calling iLogicForm.Show() from external iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012326#M283096</link>
      <description>&lt;P&gt;I have a local-form with four required text Fields for the user to enter. This form is called when a new document is created, if any of the four fields is empty&amp;nbsp;the form shows up and it doesn't go away until all fields are filled in. This works fine if the form is called form a local iLogic rule but if I called the form from an external iLogic rule it kind of works but it behaves different. Let me explain it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the form is called from a local rule and all four fields are empty but the user only fills one of the fields and click Done, the form reappears which is exactly what I want. On the other hand, if the form is called from an external rule &lt;SPAN&gt; and all four fields are empty but the user only fills one and clicks Done, instead of reappearing the same window it creates a second window, and if the second time the user fills only one field again, a third window appears and so on, I know&amp;nbsp;in a perfect world the user should fill in all of the fields and NOT click the Done button until&amp;nbsp;then, but I need to account&amp;nbsp;for all possible scenarios.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any idea why just by moving my code to an external rule recreates the window?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is my iLogic Code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SyntaxEditor Code Snippet&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
     &lt;SPAN&gt;checkFields&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
&lt;SPAN&gt;End Sub&lt;/SPAN&gt;

&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;partNumber&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;description&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;project&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;designer&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;

&lt;SPAN&gt;Function&lt;/SPAN&gt; &lt;SPAN&gt;checkFields&lt;/SPAN&gt;

    &lt;SPAN&gt;partNumber&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Part Number&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;    
    &lt;SPAN&gt;description&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Description&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
    &lt;SPAN&gt;project&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
    &lt;SPAN&gt;designer&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Designer&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;    
    
    &lt;SPAN&gt;Do&lt;/SPAN&gt; &lt;SPAN&gt;Until&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IsNullOrWhiteSpace&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;partNumber&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
        &lt;SPAN&gt;showForm&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
        &lt;SPAN&gt;partNumber&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Part Number&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
        &lt;SPAN&gt;checkFields&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
    &lt;SPAN&gt;Loop&lt;/SPAN&gt;
    
    &lt;SPAN&gt;Do&lt;/SPAN&gt; &lt;SPAN&gt;Until&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IsNullOrWhiteSpace&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;description&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
        &lt;SPAN&gt;showForm&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
        &lt;SPAN&gt;description&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Description&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
        &lt;SPAN&gt;checkFields&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
    &lt;SPAN&gt;Loop&lt;/SPAN&gt;
    
    &lt;SPAN&gt;Do&lt;/SPAN&gt; &lt;SPAN&gt;Until&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IsNullOrWhiteSpace&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;project&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
        &lt;SPAN&gt;showForm&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
        &lt;SPAN&gt;project&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
        &lt;SPAN&gt;checkFields&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
    &lt;SPAN&gt;Loop&lt;/SPAN&gt;
    
    &lt;SPAN&gt;Do&lt;/SPAN&gt; &lt;SPAN&gt;Until&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IsNullOrWhiteSpace&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;designer&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
        &lt;SPAN&gt;showForm&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
        &lt;SPAN&gt;designer&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Project&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Designer&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
        &lt;SPAN&gt;checkFields&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
    &lt;SPAN&gt;Loop&lt;/SPAN&gt;
    
&lt;SPAN&gt;End Function&lt;/SPAN&gt;

&lt;SPAN&gt;Function&lt;/SPAN&gt; &lt;SPAN&gt;showForm&lt;/SPAN&gt;
    &lt;SPAN&gt;iLogicForm&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Show&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Required Fields Form&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;FormMode.Modal&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;End Function&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;From&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ValidationForm.png" style="width: 480px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/344052iFF29514DFB49F393/image-size/large?v=v2&amp;amp;px=999" role="button" title="ValidationForm.png" alt="ValidationForm.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Multiple Windows when Using External Rule&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inventor Forms.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/344051i4BAC658E01987549/image-size/large?v=v2&amp;amp;px=999" role="button" title="Inventor Forms.png" alt="Inventor Forms.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FYI - &amp;nbsp;The form is local.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:42:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012326#M283096</guid>
      <dc:creator>fsdolphin</dc:creator>
      <dc:date>2017-04-12T14:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple windows when calling iLogicForm.Show() from external iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012376#M283097</link>
      <description>&lt;P&gt;Hi fsdolphin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure why it's behaving that way, but I would suggest creating the form as a Global Form (external form), rather than a form that resides in the file. I'm not certain that doing so would resolve the issue, but it would be something to try, and seems appropriate for the type of task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note too that you can just copy the form from the internal forms pane and paste it to the Global Forms pane.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:54:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012376#M283097</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2017-04-12T14:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple windows when calling iLogicForm.Show() from external iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012436#M283098</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, changing&amp;nbsp;to a Global from didn't work. It looks like the rule needs to be local in order for it to properly work. I'm wondering if by calling my external rule form a local rule would fix the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 15:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012436#M283098</guid>
      <dc:creator>fsdolphin</dc:creator>
      <dc:date>2017-04-12T15:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple windows when calling iLogicForm.Show() from external iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012525#M283099</link>
      <description>&lt;P&gt;Calling the external rule from a local rule did the trick.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;iLogicVb.RunExternalRule("myExternalRule")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W&lt;/a&gt;&amp;nbsp; Thanks a lot for your time&lt;EM class="ph i"&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 15:39:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012525#M283099</guid>
      <dc:creator>fsdolphin</dc:creator>
      <dc:date>2017-04-12T15:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple windows when calling iLogicForm.Show() from external iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012986#M283100</link>
      <description>&lt;P&gt;Here would be a slightly more explicit way to write the rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, there comes to be issues with using the iLogic iProperties("Project", "Project") call ( and similiar ones) because it defaults to pulling the iProperties from the file in which the rule is ran.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can cause issues when running things as external rules, or as part of a rule just depending on what specific triggers you have set. Using ThisDoc.Document mimics that functionality, by explicitly grabbing the same document that the implicit iLogic calls would.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main
	oDoc = ThisDoc.Document
	
	Do Until FieldsAreCompleted = True
		iLogicForm.Show("Required Fields Form", FormMode.Modal)
	Loop
End Sub

Private oDoc As Document

Function FieldsAreCompleted()
	Dim oDTP As PropertySet
	oDTP = oDoc.PropertySets("Design Tracking Properties")
	
	If String.IsNullOrWhiteSpace(oDTP.Item("Part Number").Value) = True Or _
			String.IsNullOrWhiteSpace(oDTP.Item("Description").Value) = True Or _
			String.IsNullOrWhiteSpace(oDTP.Item("Project").Value) = True Or _
			String.IsNullOrWhiteSpace(oDTP.Item("Designer").Value) = True Then
		Return False
	Else
		Return True
	End If
End Function&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Apr 2017 18:34:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7012986#M283100</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-04-12T18:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple windows when calling iLogicForm.Show() from external iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7013084#M283101</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2511355"&gt;@MechMachineMan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interesting code, I will give it a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Questions...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;EM&gt;Also, there comes to be issues with using the iLogic iProperties("Project", "Project") call ( and similiar ones) because it defaults to pulling the iProperties from the file in which the rule is ran.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. If I understand your statement correctly it's not recommend to call&amp;nbsp;&lt;EM&gt;iProperties.Value("Project", "Project")&lt;/EM&gt; from an external rule, correct? I'm assuming this is fine when calling from local rules, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. It's calling &lt;STRONG&gt;Item().value&lt;/STRONG&gt; the recommend way when working with external rules?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Where can I find more information on how &lt;STRONG&gt;PropertySets&lt;/STRONG&gt; work? I see that a new PropertySet with the name of "Design Tracking Properties" was created but the name was never used so I'm interested in learning more bout it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot&lt;/P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 19:11:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7013084#M283101</guid>
      <dc:creator>fsdolphin</dc:creator>
      <dc:date>2017-04-12T19:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple windows when calling iLogicForm.Show() from external iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7013241#M283102</link>
      <description>&lt;P&gt;Responses:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. If I understand your statement correctly it's not recommend to call&amp;nbsp;&lt;EM&gt;iProperties.Value("Project", "Project")&lt;/EM&gt; from an external rule, correct? I'm assuming this is fine when calling from local rules, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;- The reason I recommend against using iProperties.Value is because I have gotten burned before by it.&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;- Imagine you have written a ton of nice rules that do a bunch of file editting, and this works fine when you run the rule in the document directly. One day, you decide you want to implement a bunch of these changes over a bunch of drawings... So you write a rule to iterate through a bunch of documents and run these rules. &lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;- Now in the case that you weren't very particular about explicitly stating all of your document references in your "sub-rules", the results will be wonky because the original document the rule was run from is the the document that appears on your screen, and possibly not the one you actually want changed.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Thinking back.... I think my issue with iProperties was that I would always use ActiveDoc and that would cause issues when trying to batch run rules in many documents.&lt;/P&gt;
&lt;P&gt;- the iLogic calls should be fine... except for when you move on to using ApprenticeServer through excel to modify things, or even vba. You would have to import the iLogic Addin API/Objects to be able to use the calls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. It's calling &lt;STRONG&gt;Item().value&lt;/STRONG&gt; the recommend way when working with external rules?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- The Item.Value is just how iProperties like to be called off to get the value. You can find the documentation in the Inventor API Documentation, which is now available online!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;A title="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-B800F2A6-D427-4E2A-A711-6B69BA6BFA98" href="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-B800F2A6-D427-4E2A-A711-6B69BA6BFA98" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-B800F2A6-D427-4E2A-A711-6B69BA6BFA98&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- *This api help is also found through:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- "C:\Users\Public\Documents\Autodesk\Inventor 2017\Local Help\admapi_21_0.chm" or similiar for your system/installs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Where can I find more information on how &lt;STRONG&gt;PropertySets&lt;/STRONG&gt; work? I see that a new PropertySet with the name of "Design Tracking Properties" was created but the name was never used so I'm interested in learning more bout it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Various blogs, google-fu, and the Inventor Documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- &lt;A href="http://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html" target="_blank"&gt;http://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html&lt;/A&gt;&lt;/P&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, 12 Apr 2017 20:15:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7013241#M283102</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-04-12T20:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple windows when calling iLogicForm.Show() from external iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7014521#M283103</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 11:12:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/multiple-windows-when-calling-ilogicform-show-from-external/m-p/7014521#M283103</guid>
      <dc:creator>fsdolphin</dc:creator>
      <dc:date>2017-04-13T11:12:27Z</dc:date>
    </item>
  </channel>
</rss>

