<?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: Check if form is open in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-form-is-open/m-p/9198614#M103939</link>
    <description>&lt;P&gt;Hey Xi8000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i know it's a long time ago but did you manage to figure it out.&lt;/P&gt;&lt;P&gt;i know its realy frustrating when people say they have a problem and afterwards reply that they fixed it but don;t tell you how....&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 13:38:31 GMT</pubDate>
    <dc:creator>Peterjan.Schakel</dc:creator>
    <dc:date>2019-12-12T13:38:31Z</dc:date>
    <item>
      <title>Check if form is open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-form-is-open/m-p/5803101#M58465</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an add-in with a form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I check if the form is open or not? This does not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 'Ensure active document is a Drawing
If m_inventorApplication.ActiveDocumentType = DocumentTypeEnum.kDrawingDocumentObject Then
	For Each form In m_inventorApplication.OpenForms
		If (form.name = "Form_To_Check") Then
			'form is loaded so can do work 
			'if you need to check whether it is actually visible
			If form.Visible Then
				'do work when visible
			End If
		Else
			Dim MyLocalForm As New Form_To_Check
			MyLocalForm.Show(New WindowWrapper(m_inventorApplication.MainFrameHWND)) 
		End If
	Next
End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 08:18:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-form-is-open/m-p/5803101#M58465</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-09-04T08:18:44Z</dc:date>
    </item>
    <item>
      <title>Betreff: Check if form is open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-form-is-open/m-p/5803214#M58469</link>
      <description>I got it running.&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 04 Sep 2015 09:23:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-form-is-open/m-p/5803214#M58469</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-09-04T09:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Check if form is open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-form-is-open/m-p/6718795#M68314</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need exactly what you described.&lt;/P&gt;&lt;P&gt;But i can't find the "openForms"-Method in the "Inventor.Application"-class.&lt;/P&gt;&lt;P&gt;In the third row you wrote "m_inventorApplication.OpenForms"&lt;/P&gt;&lt;P&gt;and in the row before you wrote "m_inventorApplication.ActiveDocumentType".&lt;/P&gt;&lt;P&gt;So i'm assuming "M_inventorApplication" is an instance of the "Inventor.application"-Class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the "OpenForms"-Method from "System.Windows.Forms", but how could&lt;/P&gt;&lt;P&gt;you implement this in your Inventor-class?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need exactly such&amp;nbsp;a function.&lt;/P&gt;&lt;P&gt;could you please post the correct code with all i need to know which and how much&lt;/P&gt;&lt;P&gt;forms are actually opened in Inventor?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:25:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-form-is-open/m-p/6718795#M68314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-30T15:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check if form is open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-form-is-open/m-p/9198614#M103939</link>
      <description>&lt;P&gt;Hey Xi8000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i know it's a long time ago but did you manage to figure it out.&lt;/P&gt;&lt;P&gt;i know its realy frustrating when people say they have a problem and afterwards reply that they fixed it but don;t tell you how....&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:38:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-form-is-open/m-p/9198614#M103939</guid>
      <dc:creator>Peterjan.Schakel</dc:creator>
      <dc:date>2019-12-12T13:38:31Z</dc:date>
    </item>
  </channel>
</rss>

