<?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 Pause for User Input Dialog Box - Not Quite Getting it Right in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9562851#M111739</link>
    <description>&lt;P&gt;All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good morning!&amp;nbsp; I've been trying to automate the creation of some BIM Connectors and am tantalizingly close, but cannot quite seem to figure out how to properly pause the code to allow users to edit the connectors.&amp;nbsp; I've been playing with the .Execute2(False / True) command, but must be missing something.&amp;nbsp; Please see the video below and the attached part file and I would truly appreciate any suggestions that you have!&amp;nbsp; Full disclosure, I'm not a programmer, so feel free to poke fun at my code, which I already know I'll have to clean up.&amp;nbsp; Thanks&amp;nbsp; in advance for any help, hope all is well and have a most blessed day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peace,&lt;/P&gt;
&lt;P&gt;Pete&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 96.875%;"&gt;&lt;IFRAME width="640" height="620" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/e4fa65fd-eadf-4bed-8de2-7b3b546e56a6" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 05 Jun 2020 14:02:38 GMT</pubDate>
    <dc:creator>petestrycharske</dc:creator>
    <dc:date>2020-06-05T14:02:38Z</dc:date>
    <item>
      <title>Pause for User Input Dialog Box - Not Quite Getting it Right</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9562851#M111739</link>
      <description>&lt;P&gt;All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good morning!&amp;nbsp; I've been trying to automate the creation of some BIM Connectors and am tantalizingly close, but cannot quite seem to figure out how to properly pause the code to allow users to edit the connectors.&amp;nbsp; I've been playing with the .Execute2(False / True) command, but must be missing something.&amp;nbsp; Please see the video below and the attached part file and I would truly appreciate any suggestions that you have!&amp;nbsp; Full disclosure, I'm not a programmer, so feel free to poke fun at my code, which I already know I'll have to clean up.&amp;nbsp; Thanks&amp;nbsp; in advance for any help, hope all is well and have a most blessed day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peace,&lt;/P&gt;
&lt;P&gt;Pete&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 96.875%;"&gt;&lt;IFRAME width="640" height="620" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/e4fa65fd-eadf-4bed-8de2-7b3b546e56a6" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jun 2020 14:02:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9562851#M111739</guid>
      <dc:creator>petestrycharske</dc:creator>
      <dc:date>2020-06-05T14:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pause for User Input Dialog Box - Not Quite Getting it Right</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9562989#M111741</link>
      <description>&lt;P&gt;I expect the problem here is that the form is on a seperated thread. the only way i could think of to stop the main thread by creating a endless loop afther the execute command. and then look for document change events. And then break out of the loop if the event was triggered. I have some code to do this but the code is not working. Probably i forgot something small. My son just woke up so i have to take care of him. I will have a look at it later. Or maby some one else has a better solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 14:52:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9562989#M111741</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2020-06-05T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pause for User Input Dialog Box - Not Quite Getting it Right</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9563071#M111744</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;A href="http://www.vbforums.com/showthread.php?647422-Make-Visual-Basic-Wait-for-User-input" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; is a link to something you may be able to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 15:25:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9563071#M111744</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-06-05T15:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pause for User Input Dialog Box - Not Quite Getting it Right</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9563191#M111745</link>
      <description>&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;Here are also several other commands (ControlDefinition Names)&amp;nbsp; for AEC Exchange you might find some use for while working in that environment:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;AEC_Exchange:Command:AuthorComponent                  Author Building Components
AEC_Exchange:Command:Connector:Add                    Add Connector
AEC_Exchange:Command:Connector:Cable                  Cable Tray Connector
AEC_Exchange:Command:Connector:Conduit                Conduit Connector
AEC_Exchange:Command:Connector:Delete                 Delete Connector(s)
AEC_Exchange:Command:Connector:Duct                   Duct Connector
AEC_Exchange:Command:Connector:Edit                   Edit Connector
AEC_Exchange:Command:Connector:Electrical             Electrical Connector
AEC_Exchange:Command:Connector:IncludeChildren        Promote Component Connectors
AEC_Exchange:Command:Connector:Link                   Link Connectors
AEC_Exchange:Command:Connector:Pipe                   Pipe Connector
AEC_Exchange:Command:Connector:Suppress               Suppress Connector(s)
AEC_Exchange:Command:Connector:Unlink                 Delete Link
AEC_Exchange:Command:QualityCheck                     Design Quality Check
AEC_Exchange:Command:ShareDesignPackage               Export Building Components
AEC_Exchange:Command:UploadToC360Wrapper              Upload to Configurator 360
AEC_Exchange:Environment                              
AEC_Exchange_Command_Include_Connector                Include Connector
AEC_Exchange_Command_Shrinkwrap                       Shrinkwrap Substitute
AEC_Exchange_Command_Source_Component                 Source Component&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 16:13:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9563191#M111745</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-06-05T16:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pause for User Input Dialog Box - Not Quite Getting it Right</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9563844#M111751</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a code that is working in Visual studio. But when i copy it to an iLogic rule it does not work for the 2e connector. it looks like your previous problem. the connector does not get selected. therefore executing the edit command does not work. (i left 2 msgboxes in the code that will help you see it.) Anyway im trying to get it to work for a couple of hours now and i realy need to get to bed. but here is what i have so far. Maby some one else is seeing why the 2e connector is not getting selected.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Class&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ThisRule&lt;/SPAN&gt;

	&lt;SPAN style="color: #808080;"&gt;'Private Shared docEvents As DocumentEvents&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;busy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Main&lt;/SPAN&gt;()

		&lt;SPAN style="color: #808080;"&gt;' Get the collection of control definitions.&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oControlDefs&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt;

		&lt;SPAN style="color: #808080;"&gt;' check if this document is a part document&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DocumentType&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
			&lt;SPAN style="color: #800000;"&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Show&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"The current document must be a part file"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Incorrect Document Type"&lt;/SPAN&gt;)
			&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

		&lt;SPAN style="color: #808080;"&gt;'Enter the BIM Content environment&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"AEC_Exchange:Environment"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Execute&lt;/SPAN&gt;()

		&lt;SPAN style="color: #808080;"&gt;'Access the Browser and Activate the "Bim Content" Browser Pane&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;bps&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BrowserPanes&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;bimContentPane&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserPane&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BP&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserPane&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;bps&lt;/SPAN&gt;
			&lt;SPAN style="color: #808080;"&gt;' the name is case sensitive original it worked only accidentally (BIM should be with capital letters)&lt;/SPAN&gt;
			&lt;SPAN style="color: #808080;"&gt;'       ' i made the if statement case insensitive ;-)&lt;/SPAN&gt;
			&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BP&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Equals&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bim Content"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;StringComparison&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;InvariantCultureIgnoreCase&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
				&lt;SPAN style="color: #800000;"&gt;BP&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Activate&lt;/SPAN&gt;()
				&lt;SPAN style="color: #800000;"&gt;bimContentPane&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;BP&lt;/SPAN&gt;
			&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

		&lt;SPAN style="color: #808080;"&gt;'Define the Appearance variables&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oElecAppearance&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Asset&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Assets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Connection_Electrical"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMechAppearance&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Asset&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Assets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Connection_Mechanical"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPipeAppearance&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Asset&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Assets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Connection_Piping"&lt;/SPAN&gt;)

		&lt;SPAN style="color: #808080;"&gt;'Define the BIM Component Information&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPartDocBIM&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt;

		&lt;SPAN style="color: #808080;"&gt;'Check through each Face on the body and see if uses the special appearance.&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSrfBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;
			&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Face&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSrfBody&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Faces&lt;/SPAN&gt;
				&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Appearance&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DisplayName&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oElecAppearance&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DisplayName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;

					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Elec_Coll&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ObjectCollection&lt;/SPAN&gt;
					&lt;SPAN style="color: #800000;"&gt;Elec_Coll&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateObjectCollection&lt;/SPAN&gt;
					&lt;SPAN style="color: #800000;"&gt;Elec_Coll&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt;)

					&lt;SPAN style="color: #808080;"&gt;'Create Electrical Connector Definition&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oElecConn&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMElectricalConnectorDefinition&lt;/SPAN&gt;

					&lt;SPAN style="color: #800000;"&gt;oElecConn&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDocBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateElectricalConnectorDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Elec_Coll&lt;/SPAN&gt;)
					&lt;SPAN style="color: #800000;"&gt;oElecConn&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SystemType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;BIMElectricalSystemTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPowerBalancedElectricalSystemType&lt;/SPAN&gt;

					&lt;SPAN style="color: #808080;"&gt;'Add the Electrical BIM Connection&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;con&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMConnector&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDocBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oElecConn&lt;/SPAN&gt;)
					&lt;SPAN style="color: #800000;"&gt;con&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Elec_Conn_"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oPartDocBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;
					&lt;SPAN style="color: #808080;"&gt;'Create a Browser Node and select the new connector via the Browser&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTopBrowserNode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserNode&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;bimContentPane&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TopNode&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oNode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserNode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTopBrowserNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BrowserNodes&lt;/SPAN&gt;
						&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Right&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FullPath&lt;/SPAN&gt;, 22) = &lt;SPAN style="color: #008080;"&gt;"MEP System Connections"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
							&lt;SPAN style="color: #800000;"&gt;oNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Expanded&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'&amp;lt;-- this is an important change&lt;/SPAN&gt;
							&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSubNode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserNode&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BrowserNodes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(5)
							&lt;SPAN style="color: #800000;"&gt;oSubNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Expanded&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'&amp;lt;-- this is an important change&lt;/SPAN&gt;
							&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oConnNode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserNode&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSubNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BrowserNodes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;con&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"before select"&lt;/SPAN&gt;)
							&lt;SPAN style="color: #800000;"&gt;oConnNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DoSelect&lt;/SPAN&gt;()
&lt;SPAN style="color: #800000;"&gt;msgbox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"After select"&lt;/SPAN&gt;)
							&lt;SPAN style="color: #808080;"&gt;'Open and edit the new Electrical BIM Connector&lt;/SPAN&gt;
							&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oControlDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ControlDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oControlDefs&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"AEC_Exchange:Command:Connector:Edit"&lt;/SPAN&gt;)

							&lt;SPAN style="color: #808080;"&gt;' Execute the command.&lt;/SPAN&gt;
							&lt;SPAN style="color: #800000;"&gt;oControlDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Execute&lt;/SPAN&gt;()

							&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DocumentEvents&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DocumentEvents&lt;/SPAN&gt;
							&lt;SPAN style="color: #ff0000;"&gt;AddHandler&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OnChange&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;AddressOf&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents_OnChange&lt;/SPAN&gt;
							&lt;SPAN style="color: #800000;"&gt;busy&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
							&lt;SPAN style="color: #ff0000;"&gt;While&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;busy&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
								&lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Threading&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Thread&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sleep&lt;/SPAN&gt;(50)
								&lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DoEvents&lt;/SPAN&gt;()
							&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;While&lt;/SPAN&gt;
							&lt;SPAN style="color: #ff0000;"&gt;RemoveHandler&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OnChange&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;AddressOf&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents_OnChange&lt;/SPAN&gt;

						&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

				&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
			&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;


	&lt;SPAN style="color: #ff0000;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents_OnChange&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ReasonsForChange&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CommandTypesEnum&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;BeforeOrAfter&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;EventTimingEnum&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Context&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;NameValueMap&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;ByRef&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;HandlingCode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;HandlingCodeEnum&lt;/SPAN&gt;)

		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;BeforeOrAfter&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;EventTimingEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kAfter&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Context&lt;/SPAN&gt;(1) = &lt;SPAN style="color: #008080;"&gt;"API Change"&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
			&lt;SPAN style="color: #800000;"&gt;busy&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Class&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 23:22:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9563844#M111751</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2020-06-05T23:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pause for User Input Dialog Box - Not Quite Getting it Right</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9564407#M111753</link>
      <description>&lt;P&gt;Hi, i found the problem that i had last knight. the command form was closed but the command it self was not finished. i had to force it to stop. That did the trick. Below you find the working code. I also removed some code that could that loops over all nodes tofind the correct Browserpane and nodes. (and i used my own code from you previous question;-)&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Class&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ThisRule&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;busy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Main&lt;/SPAN&gt;()

		&lt;SPAN style="color: #808080;"&gt;' Get the collection of control definitions.&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oControlDefs&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oControlDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ControlDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oControlDefs&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"AEC_Exchange:Command:Connector:Edit"&lt;/SPAN&gt;)

		&lt;SPAN style="color: #808080;"&gt;' check if this document is a part document&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DocumentType&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
			&lt;SPAN style="color: #800000;"&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Show&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"The current document must be a part file"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Incorrect Document Type"&lt;/SPAN&gt;)
			&lt;SPAN style="color: #ff0000;"&gt;Return&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

		&lt;SPAN style="color: #808080;"&gt;'Enter the BIM Content environment&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"AEC_Exchange:Environment"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Execute&lt;/SPAN&gt;()

		&lt;SPAN style="color: #808080;"&gt;'Access the Browser and Activate the "Bim Content" Browser Pane&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;bps&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BrowserPanes&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;bimContentPane&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserPane&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BrowserPanes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"AEC_Exchange:Browser"&lt;/SPAN&gt;)

		&lt;SPAN style="color: #808080;"&gt;'Define the Appearance variables&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oElecAppearance&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Asset&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Assets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Connection_Electrical"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMechAppearance&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Asset&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Assets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Connection_Mechanical"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPipeAppearance&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Asset&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Assets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Connection_Piping"&lt;/SPAN&gt;)

		&lt;SPAN style="color: #808080;"&gt;'Define the BIM Component Information&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPartDocBIM&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BIMComponent&lt;/SPAN&gt;


		&lt;SPAN style="color: #808080;"&gt;'Check through each Face on the body and see if uses the special appearance.&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSrfBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SurfaceBodies&lt;/SPAN&gt;
			&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Face&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSrfBody&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Faces&lt;/SPAN&gt;
				&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Appearance&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DisplayName&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oElecAppearance&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DisplayName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;

					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Elec_Coll&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ObjectCollection&lt;/SPAN&gt;
					&lt;SPAN style="color: #800000;"&gt;Elec_Coll&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateObjectCollection&lt;/SPAN&gt;
					&lt;SPAN style="color: #800000;"&gt;Elec_Coll&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oFace&lt;/SPAN&gt;)

					&lt;SPAN style="color: #808080;"&gt;'Create Electrical Connector Definition&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oElecConn&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMElectricalConnectorDefinition&lt;/SPAN&gt;

					&lt;SPAN style="color: #800000;"&gt;oElecConn&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDocBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateElectricalConnectorDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Elec_Coll&lt;/SPAN&gt;)
					&lt;SPAN style="color: #800000;"&gt;oElecConn&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SystemType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;BIMElectricalSystemTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPowerBalancedElectricalSystemType&lt;/SPAN&gt;

					&lt;SPAN style="color: #808080;"&gt;'Add the Electrical BIM Connection&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;con&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BIMConnector&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartDocBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oElecConn&lt;/SPAN&gt;)
					&lt;SPAN style="color: #800000;"&gt;con&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Elec_Conn_"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oPartDocBIM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Connectors&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;



					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;systemNode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserNode&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;bimContentPane&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TopNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BrowserNodes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MEP System Connections"&lt;/SPAN&gt;)
					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;electicalNode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserNode&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;systemNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BrowserNodes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Electrical"&lt;/SPAN&gt;)
					&lt;SPAN style="color: #800000;"&gt;electicalNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Expanded&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oConnNode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;BrowserNode&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;electicalNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;BrowserNodes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;con&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;)
					&lt;SPAN style="color: #800000;"&gt;oConnNode&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DoSelect&lt;/SPAN&gt;()

					&lt;SPAN style="color: #800000;"&gt;oControlDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Execute&lt;/SPAN&gt;()
					&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DocumentEvents&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DocumentEvents&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;AddHandler&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OnChange&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;AddressOf&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents_OnChange&lt;/SPAN&gt;
					&lt;SPAN style="color: #800000;"&gt;busy&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;While&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;busy&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
						&lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Threading&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Thread&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sleep&lt;/SPAN&gt;(50)
						&lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DoEvents&lt;/SPAN&gt;()
					&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;While&lt;/SPAN&gt;
					&lt;SPAN style="color: #ff0000;"&gt;RemoveHandler&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OnChange&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;AddressOf&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents_OnChange&lt;/SPAN&gt;
					&lt;SPAN style="color: #800000;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StopActiveCommand&lt;/SPAN&gt;()

				&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
			&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;


	&lt;SPAN style="color: #ff0000;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;docEvents_OnChange&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ReasonsForChange&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CommandTypesEnum&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;BeforeOrAfter&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;EventTimingEnum&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Context&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;NameValueMap&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;ByRef&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;HandlingCode&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;HandlingCodeEnum&lt;/SPAN&gt;)

		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;BeforeOrAfter&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;EventTimingEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kAfter&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Context&lt;/SPAN&gt;(1) = &lt;SPAN style="color: #008080;"&gt;"API Change"&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
			&lt;SPAN style="color: #800000;"&gt;busy&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Class&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Jun 2020 12:50:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9564407#M111753</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2020-06-06T12:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pause for User Input Dialog Box - Not Quite Getting it Right</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9567017#M111784</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;, good morning!&amp;nbsp; That worked perfectly and I've now adapted it to work with piping and duct connectors!&amp;nbsp; I finally broke down and decided to use your code&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@108A86EAEBDCD23B42C9DA513E42C4E6/emoticons/1f923.png" alt=":rolling_on_the_floor_laughing:" title=":rolling_on_the_floor_laughing:" /&gt;&amp;nbsp; Seriously though, I cannot thank you enough as this is now working the way that I envisioned it to.&amp;nbsp; I really appreciate the help, hope all is well and have a most blessed day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peace,&lt;/P&gt;
&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 14:04:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9567017#M111784</guid>
      <dc:creator>petestrycharske</dc:creator>
      <dc:date>2020-06-08T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pause for User Input Dialog Box - Not Quite Getting it Right</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9567684#M111802</link>
      <description>&lt;P&gt;Its good that you have decided to use my code. I knew I could convince you to come to the dark side.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 18:29:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pause-for-user-input-dialog-box-not-quite-getting-it-right/m-p/9567684#M111802</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2020-06-08T18:29:19Z</dc:date>
    </item>
  </channel>
</rss>

