<?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: Harness report generation automation in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10318944#M124500</link>
    <description>&lt;P&gt;I'm using VBA, not iLogic but I got it mostly running. I'm hung up on the line "System.Threading.Thread.Sleep (10)". Method or data member not found. Any advice?&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 18:54:36 GMT</pubDate>
    <dc:creator>Zachary.BeasonD97A7</dc:creator>
    <dc:date>2021-05-17T18:54:36Z</dc:date>
    <item>
      <title>Harness report generation automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10311305#M124404</link>
      <description>&lt;P&gt;I am trying to automate updating of reports in a wire harness .idw file. I can call&amp;nbsp;HSL:Cable:Generate_Report just fine but I can't find any documentation on how to automate the actual generation of reports, namely specifying file save names and config files to reference. Has anyone ever done this before?&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 17:54:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10311305#M124404</guid>
      <dc:creator>Zachary.BeasonD97A7</dc:creator>
      <dc:date>2021-05-13T17:54:13Z</dc:date>
    </item>
    <item>
      <title>Harness report generation automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10315643#M124460</link>
      <description>&lt;P&gt;I had a quick look in the API help and there is little information on the cable and harness API 2020.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use either send keys or mouse control to navigate through the dialogue box.&lt;/P&gt;&lt;P&gt;The below&amp;nbsp; opens the "Add files to List" dialogue&amp;nbsp; in Reports in the assembly environment. It will at least remove some tedious clicks and help navigate.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	&lt;SPAN&gt;'https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys.send?view=net-5.0&lt;/SPAN&gt;
&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
   &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCommandMgr&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;CommandManager&lt;/SPAN&gt;
 	&lt;SPAN&gt;oCommandMgr&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;
   &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oControlDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinition&lt;/SPAN&gt;
  	&lt;SPAN&gt;oControlDef&lt;/SPAN&gt; = &lt;SPAN&gt;oCommandMgr&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"HSL:Cable:Generate_Report"&lt;/SPAN&gt;)
   &lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oControlDef&lt;/SPAN&gt;.&lt;SPAN&gt;Execute&lt;/SPAN&gt;
   &lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;wait&lt;/SPAN&gt;(0.6)
	&lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;/SPAN&gt;.&lt;SPAN&gt;SendKeys&lt;/SPAN&gt;.&lt;SPAN&gt;SendWait&lt;/SPAN&gt;(&lt;SPAN&gt;"{F10}"&lt;/SPAN&gt;)
	&lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;/SPAN&gt;.&lt;SPAN&gt;SendKeys&lt;/SPAN&gt;.&lt;SPAN&gt;SendWait&lt;/SPAN&gt;(&lt;SPAN&gt;"{RIGHT 2}"&lt;/SPAN&gt;)
	&lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;/SPAN&gt;.&lt;SPAN&gt;SendKeys&lt;/SPAN&gt;.&lt;SPAN&gt;SendWait&lt;/SPAN&gt;(&lt;SPAN&gt;"{ENTER}"&lt;/SPAN&gt;)
	&lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;/SPAN&gt;.&lt;SPAN&gt;SendKeys&lt;/SPAN&gt;.&lt;SPAN&gt;SendWait&lt;/SPAN&gt;(&lt;SPAN&gt;"{ENTER}"&lt;/SPAN&gt;)
	&lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;/SPAN&gt;.&lt;SPAN&gt;SendKeys&lt;/SPAN&gt;.&lt;SPAN&gt;SendWait&lt;/SPAN&gt;(&lt;SPAN&gt;" "&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
&lt;SPAN&gt;'https://stackoverflow.com/questions/15857893/wait-5-seconds-before-continuing-code-vb-net&lt;/SPAN&gt;
   &lt;SPAN&gt;'Timer to allow time for form to come into focus.&lt;/SPAN&gt;
   &lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;wait&lt;/SPAN&gt;(&lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;seconds&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt;)
     &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 0 &lt;SPAN&gt;To&lt;/SPAN&gt; &lt;SPAN&gt;seconds&lt;/SPAN&gt; * 100
       &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Threading&lt;/SPAN&gt;.&lt;SPAN&gt;Thread&lt;/SPAN&gt;.&lt;SPAN&gt;Sleep&lt;/SPAN&gt;(10)
     &lt;SPAN&gt;' ThisApplication.DoEvents()&lt;/SPAN&gt;
     &lt;SPAN&gt;Next&lt;/SPAN&gt;
   &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 May 2021 01:04:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10315643#M124460</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-05-16T01:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Harness report generation automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10318944#M124500</link>
      <description>&lt;P&gt;I'm using VBA, not iLogic but I got it mostly running. I'm hung up on the line "System.Threading.Thread.Sleep (10)". Method or data member not found. Any advice?&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 18:54:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10318944#M124500</guid>
      <dc:creator>Zachary.BeasonD97A7</dc:creator>
      <dc:date>2021-05-17T18:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Harness report generation automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10319031#M124504</link>
      <description>&lt;P&gt;NM, I went with Application.Wait(1) and it's working fine. This is what I have so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public Sub ReportUpdate()
 
   Dim oCommandMgr As CommandManager
    Set oCommandMgr = ThisApplication.CommandManager
   Dim oControlDef As ControlDefinition
    Set oControlDef = oCommandMgr.ControlDefinitions.Item("HSL:Cable:Edit_Nailboard_Sketch")
     Call oControlDef.Execute
    Set oControlDef = oCommandMgr.ControlDefinitions.Item("HSL:Cable:Generate_Report")
     Call oControlDef.Execute
   'Call wait(600)
   Application.wait (1)
    
    SendKeys ("{F10}")
    SendKeys ("{RIGHT 2}")
    SendKeys ("{ENTER}")
    SendKeys ("{ENTER}")
    SendKeys (" ")
    SendKeys ("C:\Vault Local\Report Configuration Files\Connector with Color.cfg")
    SendKeys ("{ENTER}")        
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This gets me to the point of picking the config file but I can't select the item in the list once I pick that config to change the name of the output file. No amount of keyboard basing seems to get it. Any ideas?&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 19:37:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10319031#M124504</guid>
      <dc:creator>Zachary.BeasonD97A7</dc:creator>
      <dc:date>2021-05-17T19:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Harness report generation automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10319100#M124505</link>
      <description>&lt;P&gt;No advise really other than to hopefully find the keyboard stroke to get to you destination. It took me a while to even find the alt/F10 stroke to access the tabs. If you are really stuck you could use mouse control but I would be wary of that where accessing files are concerned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tested it there and to access what I assume is a vba&amp;nbsp; list box use: TAB, RIGHT 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 20:16:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10319100#M124505</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-05-17T20:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Harness report generation automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10319144#M124509</link>
      <description>Yeah, that gets you into the box but I haven't found a way to change the contents other than double clicking. I feel like I'm already living dangerously by using SendKeys, I don't need to start adding mouse clicks to it as well. Thanks for the help, just wish there was documented API calls for this stuff.</description>
      <pubDate>Mon, 17 May 2021 20:34:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/harness-report-generation-automation/m-p/10319144#M124509</guid>
      <dc:creator>Zachary.BeasonD97A7</dc:creator>
      <dc:date>2021-05-17T20:34:27Z</dc:date>
    </item>
  </channel>
</rss>

