<?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>Thema "Re: VBA (IV 2018) - Dynamische Simulation steuern/anpassen/automatisieren" in Inventor - Deutsches Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8720978#M15488</link>
    <description>&lt;P&gt;Fragestellung jetzt auch ans Customization-Forum weitergegeben..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/vba-iv-2018-dynamic-simulation-control-adjustment-automation/td-p/8720970" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-customization/vba-iv-2018-dynamic-simulation-control-adjustment-automation/td-p/8720970&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 15:38:40 GMT</pubDate>
    <dc:creator>fullevent</dc:creator>
    <dc:date>2019-04-10T15:38:40Z</dc:date>
    <item>
      <title>VBA (IV 2018) - Dynamische Simulation steuern/anpassen/automatisieren</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8669111#M15484</link>
      <description>&lt;P&gt;Hallo Zusammen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ich versuche mir seit längerem eine Vorlage zu erstellen um eine größtenteils vordefinierte Simulation durchzuführen.&lt;/P&gt;
&lt;P&gt;Dabei komme ich an ein paar stellen nicht weiter und hoffe auf eure Hilfe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ziel wäre folgender Ablauf:&lt;/P&gt;
&lt;P&gt;(x)&amp;nbsp; Userform öffnen -&amp;gt; Hier möchte ich ein paar Werte eingeben und auf "ausführen" klicken (Form noch nicht vorhanden)&lt;/P&gt;
&lt;P&gt;*Beginn Code&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Starten der "Dynamischen Simulation"&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Ändern der vorgegebenen Bewegung nach den Werten aus (x)&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; Anpassung der Simulationsdauer&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp; Durchführen der Simulation&lt;/P&gt;
&lt;P&gt;5.&amp;nbsp; Ausgabediagramm anzeigen&lt;/P&gt;
&lt;P&gt;6.&amp;nbsp; Daten nach Excel exportieren&lt;/P&gt;
&lt;P&gt;7.&amp;nbsp; Excel-Datei speichern (gleiches Verzeichnis + Name wie die Baugruppe)&lt;/P&gt;
&lt;P&gt;8.&amp;nbsp; Öffnen einer anderen Excel-Datei aus besagtem Verzeichnis&lt;/P&gt;
&lt;P&gt;*Ende Code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Den Code für Schritt 1 und 4 habe ich aus&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-deutsch/bewegungssimulation-mit-ilogic/td-p/6220316" target="_blank" rel="noopener"&gt;diesem Beitrag&lt;/A&gt;&amp;nbsp;kopiert und angepasst. Das funktioniert soweit.&lt;/P&gt;
&lt;PRE&gt;Sub Start_DynSim()
    ' Get the active document.  This assumes it is an assembly.
    Dim asmDoc As AssemblyDocument
    Set asmDoc = ThisApplication.ActiveDocument
    
    ' The Dynamic Simulation environment must be active.
    Dim UIManager As UserInterfaceManager
    Set UIManager = ThisApplication.UserInterfaceManager
    If UIManager.ActiveEnvironment.InternalName &amp;lt;&amp;gt; "DynamicSimulationEnvironmentInternalName" Then
        ' Get the environment manager.
        Dim environmentMgr As EnvironmentManager
        Set environmentMgr = asmDoc.EnvironmentManager
    
        Dim dsEnv As Environment
        Set dsEnv = UIManager.Environments.Item("DynamicSimulationEnvironmentInternalName")
        Call environmentMgr.SetCurrentEnvironment(dsEnv)
    End If
         
    ' Get the simulation manager from the assembly.
    Dim simManager As SimulationManager
    Set simManager = asmDoc.ComponentDefinition.SimulationManager
    
    ' Get the first simulation.  Currently there is only ever one.
    Dim sim As DynamicSimulation
    Set sim = simManager.DynamicSimulations.Item(1)
    
    ' Check to see if the simulation has already been computed.
    If sim.LastComputedTimeStep &amp;lt; sim.NumberOfTimeSteps Then
        ' Compute the simulation, which will also play it.
        sim.ComputeSimulation
    Else
        ' Play the computed simulation.
        sim.PlaySimulation
    End If
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bei Schritt 2 und 3 habe ich auf Parameter gehofft, aber diese Start- /Endpunkte (siehe nachfolgenden beiden Bilder) lassen sich nicht parametrisieren &lt;span class="lia-unicode-emoji" title=":verwirrtes_Gesicht:"&gt;😕&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Ich habe das Objekt "sim" nach diesen Werten durchsucht in der Hoffnung diese überschreiben zu können, aber bislang nicht gefunden.&lt;/P&gt;
&lt;PRE&gt;    Dim sim As DynamicSimulation
    Set sim = simManager.DynamicSimulations.Item(1)&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-03-19 16_39_02-Autodesk Inventor Professional 2018 - [Sim_Test.iam].png" style="width: 261px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/615689i17479DCAB1B7E984/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-03-19 16_39_02-Autodesk Inventor Professional 2018 - [Sim_Test.iam].png" alt="2019-03-19 16_39_02-Autodesk Inventor Professional 2018 - [Sim_Test.iam].png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-03-19 16_07_23-CONTACT Workspace Manager [Simulations_Test, C__Workspaces_Simulations_Test_].png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/615686i779B7594F5DEC619/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-03-19 16_07_23-CONTACT Workspace Manager [Simulations_Test, C__Workspaces_Simulations_Test_].png" alt="2019-03-19 16_07_23-CONTACT Workspace Manager [Simulations_Test, C__Workspaces_Simulations_Test_].png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Die Schritte 5-8 wären nice-to-have.&lt;/P&gt;
&lt;P&gt;Schritte 2 und 3 wäre mir wichtig..&amp;nbsp; wenn es hierfür eine Lösung gibt bin ich für jeden Tipp dankbar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Schritt 5+6:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-03-19 16_12_17-CONTACT Workspace Manager [Simulations_Test, C__Workspaces_Simulations_Test_].png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/615695i9B67AD5320A64F5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-03-19 16_12_17-CONTACT Workspace Manager [Simulations_Test, C__Workspaces_Simulations_Test_].png" alt="2019-03-19 16_12_17-CONTACT Workspace Manager [Simulations_Test, C__Workspaces_Simulations_Test_].png" /&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;Anbei die ZIP mit meiner bisherigen Vorlage.&lt;/P&gt;
&lt;P&gt;Die Userform nehme ich in Angriff sobald ich eine Möglichkeit gefunden habe die Werte in dem Fenster "Festgelegte Bewegung" zu überschreiben.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Danke an alle die sich hierfür Zeit nehmen!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grüße,&lt;BR /&gt;Aleks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 16:16:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8669111#M15484</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2019-03-19T16:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: VBA (IV 2018) - Dynamische Simulation steuern/anpassen/automatisieren</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8689708#M15485</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5056650"&gt;@fullevent&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vielen lieben dank für deine sehr interessante frage. Eventuell kannst du auf&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/559699"&gt;@Juergen_Wagner&lt;/a&gt;&amp;nbsp;Blog etwas finden: &lt;A href="https://inventorfaq.blogspot.com/" target="_blank"&gt;https://inventorfaq.blogspot.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sonst wäre in deinem Fall das &lt;A href="https://forums.autodesk.com/t5/inventor-customization/bd-p/120" target="_blank" rel="noopener"&gt;Inventor Customization&lt;/A&gt;&amp;nbsp;Forum die richtige Anlaufstelle (auf Englisch). Lass es mich wissen, falls du Hilfe brauchst wegen der Sprache.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Falls du fragen hast kannst du dich jederzeit bei mir melden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Viele Grüße,&lt;/P&gt;
&lt;P&gt;Michèle.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 09:57:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8689708#M15485</guid>
      <dc:creator>michele.mk</dc:creator>
      <dc:date>2019-03-28T09:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: VBA (IV 2018) - Dynamische Simulation steuern/anpassen/automatisieren</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8690159#M15486</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4103024"&gt;@michele.mk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;danke für den Hinweis.&lt;BR /&gt;Ich werde meine Frage übers Wochenende mal im &lt;A href="https://forums.autodesk.com/t5/inventor-customization/bd-p/120" target="_blank" rel="noopener"&gt;Inventor Customization Forum&lt;/A&gt;&amp;nbsp;stellen und abwarten.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jürgens Blog hat mir schon etliche Fragen - auch zur Dynamischen Simulation - beantwortet, aber speziell zur Ansteuerung über die API konnte ich nichts finden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ich geb Bescheid wenn ich hierzu etwas finde.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grüße&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 12:00:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8690159#M15486</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2019-03-28T12:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: VBA (IV 2018) - Dynamische Simulation steuern/anpassen/automatisieren</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8690748#M15487</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5056650"&gt;@fullevent&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;es freut mich zu hören, dass Jürgens Blog dir weiter geholfen hat - auch wenn es deine jetzige Frage nicht beantwortet hat.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Das wäre sehr lieb, dass du es uns hier mitteilst, wenn du selbst eine Antwort findest und falls du über die Customization Hilfe bekommst, die Antwort ebenfalls hier postest. Das ist für alle sicherlich sehr interessant zu lesen.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lass es mich wissen, falls du Hilfe für die Übersetzung brauchst.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grüße,&lt;/P&gt;
&lt;P&gt;Michèle.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 13:58:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8690748#M15487</guid>
      <dc:creator>michele.mk</dc:creator>
      <dc:date>2019-03-28T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: VBA (IV 2018) - Dynamische Simulation steuern/anpassen/automatisieren</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8720978#M15488</link>
      <description>&lt;P&gt;Fragestellung jetzt auch ans Customization-Forum weitergegeben..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/vba-iv-2018-dynamic-simulation-control-adjustment-automation/td-p/8720970" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-customization/vba-iv-2018-dynamic-simulation-control-adjustment-automation/td-p/8720970&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 15:38:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8720978#M15488</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2019-04-10T15:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: VBA (IV 2018) - Dynamische Simulation steuern/anpassen/automatisieren</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8723255#M15489</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5056650"&gt;@fullevent&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vielen Dank für deine Rückmeldung. Wenn du dort eine Antwort bekommst, wärst du so lieb und postet diese auch hier im Thema? So profitieren auch alle von der Lösung.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Zusätzlich kann ich dann deine Antwort als Lösung markieren: einmal ist das super, weil du dafür Kredit bekommst, zweitens optimiert es die Google Suche und das Thema wird hervorgehoben.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vielen Dank&amp;nbsp; und viel Spaß mit Inventor.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Gruß,&lt;BR /&gt;Michèle.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 11:43:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8723255#M15489</guid>
      <dc:creator>michele.mk</dc:creator>
      <dc:date>2019-04-11T11:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: VBA (IV 2018) - Dynamische Simulation steuern/anpassen/automatisieren</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8724058#M15490</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4103024"&gt;@michele.mk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;jetzt wollte ich kurz antworten und hab den falschen Button erwischt ^^&lt;/P&gt;
&lt;P&gt;Bitte wieder als nicht gelöst markieren wenns geht.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sobald ich eine Antwort habe werde ich diese natürlich hier kopieren/verlinken.&lt;BR /&gt;Danke dir!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grüße,&lt;BR /&gt;Aleks&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 15:37:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8724058#M15490</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2019-04-11T15:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: VBA (IV 2018) - Dynamische Simulation steuern/anpassen/automatisieren</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8724075#M15491</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5056650"&gt;@fullevent&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;du kein Problem, kann passieren! Du kannst sogar selbst die Lösung entmarkieren! Ist das nicht toll? Als Themenersteller hast du folgende Optionen:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Themenersteller_Optionen.png" style="width: 245px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/625139i30238B63D25494E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Themenersteller_Optionen.png" alt="Themenersteller_Optionen.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Und vielen Dank, das wäre echt toll, wenn du die Antwort postest. Bin schon ganz gespannt.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gruß,&lt;/P&gt;
&lt;P&gt;Michèle&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 15:43:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/vba-iv-2018-dynamische-simulation-steuern-anpassen/m-p/8724075#M15491</guid>
      <dc:creator>michele.mk</dc:creator>
      <dc:date>2019-04-11T15:43:43Z</dc:date>
    </item>
  </channel>
</rss>

