<?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 How to Start FEM Simulation Without Using SendKeys in Inventor API in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-start-fem-simulation-without-using-sendkeys-in-inventor/m-p/12787270#M167595</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am developing a console application to optimize parts using the gradient method. Currently, I am starting the FEM simulation using SendKeys, but I am looking for a more direct method to initiate the simulation. Here is the code I am using:&lt;BR /&gt;&lt;BR /&gt;' Access the CommandManager object and run the simulation&lt;BR /&gt;Dim commandManager As CommandManager = invApp.CommandManager&lt;BR /&gt;Dim controlDef As ControlDefinition = commandManager.ControlDefinitions.Item(FeaSimulateCmdName)&lt;BR /&gt;Dim hWnd As IntPtr = invApp.MainFrameHWND&lt;BR /&gt;SetForegroundWindow(hWnd)&lt;BR /&gt;controlDef.Execute()&lt;BR /&gt;SendKeys.SendWait("{ENTER}")&lt;BR /&gt;System.Threading.Thread.Sleep(berechnungsdauer) ' Wait for the simulation to complete&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a more straightforward way to start the simulation without relying on SendKeys?&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 13:16:33 GMT</pubDate>
    <dc:creator>gerd</dc:creator>
    <dc:date>2024-05-21T13:16:33Z</dc:date>
    <item>
      <title>How to Start FEM Simulation Without Using SendKeys in Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-start-fem-simulation-without-using-sendkeys-in-inventor/m-p/12787270#M167595</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am developing a console application to optimize parts using the gradient method. Currently, I am starting the FEM simulation using SendKeys, but I am looking for a more direct method to initiate the simulation. Here is the code I am using:&lt;BR /&gt;&lt;BR /&gt;' Access the CommandManager object and run the simulation&lt;BR /&gt;Dim commandManager As CommandManager = invApp.CommandManager&lt;BR /&gt;Dim controlDef As ControlDefinition = commandManager.ControlDefinitions.Item(FeaSimulateCmdName)&lt;BR /&gt;Dim hWnd As IntPtr = invApp.MainFrameHWND&lt;BR /&gt;SetForegroundWindow(hWnd)&lt;BR /&gt;controlDef.Execute()&lt;BR /&gt;SendKeys.SendWait("{ENTER}")&lt;BR /&gt;System.Threading.Thread.Sleep(berechnungsdauer) ' Wait for the simulation to complete&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a more straightforward way to start the simulation without relying on SendKeys?&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 13:16:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-start-fem-simulation-without-using-sendkeys-in-inventor/m-p/12787270#M167595</guid>
      <dc:creator>gerd</dc:creator>
      <dc:date>2024-05-21T13:16:33Z</dc:date>
    </item>
  </channel>
</rss>

