<?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 "Betreff: Zugriff auf aktuellen Versatz mit ilogoc" in Inventor - Deutsches Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9748629#M9788</link>
    <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8396362"&gt;@Gajus61&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;geheim ist da nichts. Das meiste wäre ohne die Hilfe der Mitglieder hier nicht zustande gekommen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sobald ich wieder am Arbeitsplatz bin werde ich den Code posten bzw. hochladen.&lt;/P&gt;
&lt;P&gt;Wird allerdings 2-3 Wochen dauern.&lt;/P&gt;
&lt;P&gt;Wäre schön wenn du deine Lösung ebenfalls postest und, wie&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/514129"&gt;@Peter.C.Schulz&lt;/a&gt;&amp;nbsp; schon geschrieben hat, als Lösung markierst.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Viel Erfolg weiterhin.&lt;/P&gt;
&lt;P&gt;Grüße&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 18:17:09 GMT</pubDate>
    <dc:creator>fullevent</dc:creator>
    <dc:date>2020-09-15T18:17:09Z</dc:date>
    <item>
      <title>Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9716960#M9780</link>
      <description>&lt;P&gt;Hallo Inventorgemeinde,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ich suche einen Weg, mit dem ich die x-y-z-Werte für den Versatz vom Ursprung auslesen bzw. ändern kann.&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="Gajus61_0-1598609178640.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/812425i9AE5464E34EBFBF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gajus61_0-1598609178640.png" alt="Gajus61_0-1598609178640.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Am einfachsten wäre es, wenn man einen Parameter&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gajus61_1-1598609381509.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/812426i8CE529B9E0FDEB30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gajus61_1-1598609381509.png" alt="Gajus61_1-1598609381509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;angeben kann, der als Parameter im Feld verknüpft bleibt. Leider wird der nach Bestätigung nur der Wert des Parameters übernommen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Es gibt über&lt;/P&gt;&lt;P&gt;iProperties.Value ( "part", "Name des Reiters", "Variable")&lt;/P&gt;&lt;P&gt;die Möglichkeit, Parameter aus den iProperties auszulesen. Man muss aber die Englischen Bezeichner der Reiternamen kennen, und auch die Variablennamen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meine Frage:&lt;/P&gt;&lt;P&gt;Wo finde ich diese Informationen bzw. wer kennt die Parameternamen für mein spezielles Problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Für die Hilfestellung danke ich im Voraus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LG&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 10:17:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9716960#M9780</guid>
      <dc:creator>Gajus61</dc:creator>
      <dc:date>2020-08-28T10:17:38Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9722600#M9781</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8396362"&gt;@Gajus61&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;die Informationen die Du suchst sind Baugruppen-Informationen. Sie werden zwar im iProperty-Dialog angezeigt, sind aber keine Bauteil-Properties, die Du mit iProperties.Value() ansprechen kannst. Es sind Eigenschaften der Occurrence, also der jeweiligen platzierten Komponente in der Baugruppe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mit dem folgenden Code, kommst du an die gewünschten Eigenschaften deiner Komponente. Aber Achtung: die Einheiten sind immer Zentimeter und müssen ggf. noch entsprechend formatiert/umgerechnet werden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im Beispiel Code wird nach der Komponente mit dem Namen "ENG-DOC-00048" auf der obersten Baugruppenebene gesucht und die Werte in die Variablen dX, dY und dZ gespeichert. Ich habe zur Kontrolle die Ausgabe in einer Dialogbox hinzugefügt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsm&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oAsm&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;dX&lt;/SPAN&gt;, &lt;SPAN&gt;dY&lt;/SPAN&gt;, &lt;SPAN&gt;dZ&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Double&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oAsm&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;
    &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"ENG-MUC-000048"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
        &lt;SPAN&gt;dX&lt;/SPAN&gt; = &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Transformation&lt;/SPAN&gt;.&lt;SPAN&gt;Translation&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt; &lt;SPAN&gt;' X-Wert&lt;/SPAN&gt;
        &lt;SPAN&gt;dY&lt;/SPAN&gt; = &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Transformation&lt;/SPAN&gt;.&lt;SPAN&gt;Translation&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt; &lt;SPAN&gt;' Y-Wert&lt;/SPAN&gt;
        &lt;SPAN&gt;dZ&lt;/SPAN&gt; = &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Transformation&lt;/SPAN&gt;.&lt;SPAN&gt;Translation&lt;/SPAN&gt;.&lt;SPAN&gt;Z&lt;/SPAN&gt; &lt;SPAN&gt;' Z-Wert&lt;/SPAN&gt;
    &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"X="&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;dX&lt;/SPAN&gt;, 3) &amp;amp; &lt;SPAN&gt;" Y="&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;dY&lt;/SPAN&gt;,3) &amp;amp; &lt;SPAN&gt;" Z="&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;dZ&lt;/SPAN&gt;,3), &lt;SPAN&gt;"Title"&lt;/SPAN&gt;)&lt;/PRE&gt;
&lt;P&gt;Gruß, Peter&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 09:01:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9722600#M9781</guid>
      <dc:creator>Peter.C.Schulz</dc:creator>
      <dc:date>2020-09-01T09:01:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9723187#M9782</link>
      <description>Hallo Peter,&lt;BR /&gt;Vielen Dank für die schnelle und klar verständliche Rückmeldung. Soweit so klar, jetzt kann ich die Parameter auslesen. Ich kann den/die Translationsparameter aber nicht direkt beschreiben. In den Objektbeschreibungen wird "Translation" als Vektorobjekt angegeben. Um die Versatzparameter neu zu setzen, muss man scheinbar eine Vektormethode anwenden. Ich bin leider kein VBA-Spezialist und auch mit Vektoren hab ichs nicht. Deshalb die Frage: Wie schreibe ich neue Werte für die Versatzparameter.&lt;BR /&gt;Für Deine Antwort bedanke ich mich im Voraus.&lt;BR /&gt;LG Erwin&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Sep 2020 13:57:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9723187#M9782</guid>
      <dc:creator>Gajus61</dc:creator>
      <dc:date>2020-09-01T13:57:29Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9734641#M9783</link>
      <description>&lt;P&gt;Hallo Erwin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ich habe mal ein wenig weiter nachgeforscht und 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; Code gefunden, der dir weiterhelfen könnte.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im Artikel&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/place-components-using-coordinates/m-p/5962497" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Place components using coordinates&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;wird die Verwendung der Matrix und Vektoren gezeigt.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hoffe dies hilft Dir weiter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Grüße,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:04:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9734641#M9783</guid>
      <dc:creator>Peter.C.Schulz</dc:creator>
      <dc:date>2020-09-08T09:04:18Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9736937#M9784</link>
      <description>Hallo Peter,&lt;BR /&gt;Vielen Dank für Deine Bemühungen. In dem Beitrag wird ein neues Teil eingefügt und positioniert. Ich habe das Teil bereits in der iam und will es nachträglich verschieben. Im Deutschen Forum bin ich schließlich fündig geworden und habe mir ein Programmzeilen ableiten können; verstehen tu ichs nicht wirklich, aber Hauptsache es funktioniert.&lt;BR /&gt;evx = evx&lt;BR /&gt;&lt;BR /&gt;Dim oAsmCompDef As AssemblyComponentDefinition&lt;BR /&gt;oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition&lt;BR /&gt;&lt;BR /&gt;Dim oTG As TransientGeometry&lt;BR /&gt;oTG = ThisApplication.TransientGeometry&lt;BR /&gt;&lt;BR /&gt;Dim oMatrix As Matrix&lt;BR /&gt;oMatrix = oTG.CreateMatrix&lt;BR /&gt;&lt;BR /&gt;oMatrix.SetTranslation(oTG.CreateVector(0, 0, evx/10))&lt;BR /&gt;oAsmCompDef.Occurrences.ItemByName("OberteilGesamt:1").Transformation = oMatrix&lt;BR /&gt;&lt;BR /&gt;evx ist der Wert den der Bauteil absolut vom Koordinatenursprung in einer Richtung versetzt angeordnet werden soll. Der ist als Benutzerparameter definiert. Die erste Zeile dient nur dazu, dass die Regel automatisch bei einer Änderung des Wertes aufgerufen wird. Die vorletzte Zeile definiert die Verschiebematrix, die ich in das Bauteil übergebe.&lt;BR /&gt;LG Erwin&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Sep 2020 07:38:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9736937#M9784</guid>
      <dc:creator>Gajus61</dc:creator>
      <dc:date>2020-09-09T07:38:41Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9745820#M9785</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8396362"&gt;@Gajus61&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ich habe mich Anfang des Jahres mit dieser Thematik beschäftigt und mir ein paar kleinere Tools gemacht.&lt;BR /&gt;Möchtest du eine neue Position für das Teil vergeben oder einen Wert um den Verschoben werden soll?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://autode.sk/2FzK71I" target="_self"&gt;Screencast Verschiebung&lt;/A&gt;&amp;nbsp;(selektierte Komponenten werden &lt;U&gt;um&lt;/U&gt; eingegebene Werte verschoben)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Möchtest du auch Drehungen umsetzen?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://autode.sk/33oS4PK" target="_self"&gt;Screencast Drehung&lt;/A&gt;&amp;nbsp;(selektierte Komponente wird &lt;U&gt;auf&lt;/U&gt; eingegebene Winkel gedreht)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grüße,&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 14:16:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9745820#M9785</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2020-09-14T14:16:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9746016#M9786</link>
      <description>Hallo,&lt;BR /&gt;Ich will (momentan) nur Verschieben. Dazu habe ich auch schon eine Lösung gefunden.&lt;BR /&gt;Rotieren wäre ev. für andere Bauteile ev. Interessant. Kannst du Deine Tools übermitteln, oder sind die "geheim".&lt;BR /&gt;Grüße&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Sep 2020 15:38:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9746016#M9786</guid>
      <dc:creator>Gajus61</dc:creator>
      <dc:date>2020-09-14T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9747393#M9787</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8396362"&gt;@Gajus61&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;vielleicht kannst Du ja deine eigene Lösung als solche markieren, dann können andere im Forum sehen, dass eine Lösung gefunden wurde.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LG&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 08:11:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9747393#M9787</guid>
      <dc:creator>Peter.C.Schulz</dc:creator>
      <dc:date>2020-09-15T08:11:38Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9748629#M9788</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8396362"&gt;@Gajus61&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;geheim ist da nichts. Das meiste wäre ohne die Hilfe der Mitglieder hier nicht zustande gekommen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sobald ich wieder am Arbeitsplatz bin werde ich den Code posten bzw. hochladen.&lt;/P&gt;
&lt;P&gt;Wird allerdings 2-3 Wochen dauern.&lt;/P&gt;
&lt;P&gt;Wäre schön wenn du deine Lösung ebenfalls postest und, wie&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/514129"&gt;@Peter.C.Schulz&lt;/a&gt;&amp;nbsp; schon geschrieben hat, als Lösung markierst.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Viel Erfolg weiterhin.&lt;/P&gt;
&lt;P&gt;Grüße&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 18:17:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9748629#M9788</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2020-09-15T18:17:09Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9749325#M9789</link>
      <description>Hallo fullevent,&lt;BR /&gt;"meine" paar Codezeilen sind schon im Post. Da ich so gut wie keine Erfahrung mit dem Forum habe, weiß ich leider nicht, wie man die farblich markiert. Den "Als Lösung markieren"-Button habe ich bereits gedrückt.&lt;BR /&gt;Danke für Deine Unterstützung&lt;BR /&gt;LG&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Sep 2020 05:14:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/9749325#M9789</guid>
      <dc:creator>Gajus61</dc:creator>
      <dc:date>2020-09-16T05:14:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10296851#M9790</link>
      <description>&lt;P&gt;Entschuldigung wenn ich mich jetzt einfach mal einklinke aber ich bräuchte so etwas ähnliches. Ich suche einen Code, der mir den Aktuellen Versatz (Translation und Rotation) in Excel ausgeben kann.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub Export_xyz_excel()&lt;/P&gt;&lt;P&gt;Dim oAsmDoc As AssemblyDocument&lt;BR /&gt;Set oAsmDoc = ThisApplication.ActiveDocument&lt;BR /&gt;&lt;BR /&gt;Dim sDocName As String&lt;BR /&gt;Dim i As Long&lt;BR /&gt;Dim iRow As Long&lt;BR /&gt;&lt;BR /&gt;Dim XL As Object&lt;BR /&gt;Dim xlWB As Object&lt;BR /&gt;Dim xlWS As Object&lt;BR /&gt;&lt;BR /&gt;If ThisApplication.ActiveDocumentType &amp;lt;&amp;gt; kAssemblyDocumentObject And ThisApplication.ActiveDocumentType &amp;lt;&amp;gt; kPartDocumentObject Then&lt;BR /&gt;MsgBox "Only Part or Assymbly document ", vbCritical&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Set XL = CreateObject("Excel.Application")&lt;BR /&gt;Set xlWB = XL.Workbooks.Add&lt;BR /&gt;Set xlWS = xlWB.ActiveSheet&lt;BR /&gt;XL.Visible = True&lt;BR /&gt;&lt;BR /&gt;iRow = 1&lt;BR /&gt;xlWS.Cells(iRow, 1).value = "Name"&lt;BR /&gt;xlWS.Cells(iRow, 2).value = "Type"&lt;BR /&gt;xlWS.Cells(iRow, 3).value = "Child"&lt;BR /&gt;xlWS.Cells(iRow, 4).value = "Length"&lt;BR /&gt;xlWS.Cells(iRow, 5).value = "Width"&lt;BR /&gt;xlWS.Cells(iRow, 6).value = "WidthOfLift"&lt;BR /&gt;xlWS.Cells(iRow, 7).value = "LiftRelPosX"&lt;BR /&gt;xlWS.Cells(iRow, 8).value = "Height"&lt;BR /&gt;xlWS.Cells(iRow, 9).value = "PosX"&lt;BR /&gt;xlWS.Cells(iRow, 10).value = "PosY"&lt;BR /&gt;xlWS.Cells(iRow, 11).value = "PosZ"&lt;BR /&gt;xlWS.Cells(iRow, 12).value = "RotX "&lt;BR /&gt;xlWS.Cells(iRow, 13).value = "RotY "&lt;BR /&gt;xlWS.Cells(iRow, 14).value = "RotZ "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xlWS.Rows("1:1").Select&lt;BR /&gt;XL.Selection.Font.Bold = True&lt;/P&gt;&lt;P&gt;With XL.Selection.Font&lt;BR /&gt;.name = " Arial"&lt;BR /&gt;.Size = 11&lt;BR /&gt;.Bold = False&lt;BR /&gt;End With&lt;BR /&gt;&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;&lt;BR /&gt;For i = 1 To ThisApplication.ActiveDocument.ComponentDefinition.Occurrences.Count&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dim oOcc As ComponentOccurrence&lt;BR /&gt;Set oOcc = ThisApplication.ActiveDocument.ComponentDefinition.Occurrences(i)&lt;BR /&gt;&lt;BR /&gt;Dim oOL As Vector&lt;BR /&gt;Dim oT As Matrix&lt;BR /&gt;&lt;BR /&gt;Set oT = oOcc.Transformation&lt;BR /&gt;Set oOL = oT.Translation&lt;BR /&gt;&lt;BR /&gt;Dim oMatrix1 As Matrix&lt;BR /&gt;Set oMatrix1 = oOcc.Transformation&lt;BR /&gt;&lt;BR /&gt;Dim oOrigin1 As Point&lt;BR /&gt;Dim oX1 As Vector&lt;BR /&gt;Dim oY1 As Vector&lt;BR /&gt;Dim oZ1 As Vector&lt;BR /&gt;&lt;BR /&gt;Call oMatrix1.GetCoordinateSystem(oOrigin1, oX1, oY1, oZ1)&lt;BR /&gt;&lt;BR /&gt;Dim oMatrix2 As Matrix&lt;BR /&gt;Set oMatrix2 = ThisApplication.TransientGeometry.CreateMatrix&lt;BR /&gt;&lt;BR /&gt;Dim oOrigin2 As Point&lt;BR /&gt;Dim oX2 As Vector&lt;BR /&gt;Dim oY2 As Vector&lt;BR /&gt;Dim oZ2 As Vector&lt;BR /&gt;&lt;BR /&gt;Call oMatrix2.GetCoordinateSystem(oOrigin2, oX2, oY2, oZ2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim paraLänge As Object&lt;BR /&gt;Dim paraAbstand As Object&lt;BR /&gt;Dim paraQuer As Object&lt;BR /&gt;Dim paraFuss As Object&lt;BR /&gt;Dim paraHöhe As Object&lt;BR /&gt;Dim oParameter As Object&lt;BR /&gt;Dim paraType As Object&lt;BR /&gt;Dim k As Long&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Set paraLänge = oAsmDoc.ComponentDefinition.Occurrences.Item(i).Definition.Parameters.Item("Segmentlänge")&lt;BR /&gt;Set paraQuer = oAsmDoc.ComponentDefinition.Occurrences.Item(i).Definition.Parameters.Item("Anzahl_Querstreben")&lt;BR /&gt;Set paraFuss = oAsmDoc.ComponentDefinition.Occurrences.Item(i).Definition.Parameters.Item("Anzahl_Standfüße")&lt;BR /&gt;Set paraHöhe = oAsmDoc.ComponentDefinition.Occurrences.Item(i).Definition.Parameters.Item("Eingabe_Höhe")&lt;BR /&gt;Set paraAbstand = oAsmDoc.ComponentDefinition.Occurrences.Item(i).Definition.Parameters.Item("Abstand_Kettenmitte")&lt;/P&gt;&lt;P&gt;iRow = iRow + 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Debug.Print&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 1).value = oOcc.name&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 3).value = 0&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 4).value = paraLänge.value&lt;BR /&gt;xlWS.Cells(iRow, 4).value = Round(xlWS.Cells(iRow, 4).value / 100, 3)&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 5).value = paraAbstand.value&lt;BR /&gt;xlWS.Cells(iRow, 5).value = Round(xlWS.Cells(iRow, 5).value / 100, 3)&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 6).value = 0&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 7).value = 0&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 8).value = paraHöhe.value&lt;BR /&gt;xlWS.Cells(iRow, 8).value = Round(xlWS.Cells(iRow, 8).value / 100, 3)&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 9).value = oOL.x&lt;BR /&gt;xlWS.Cells(iRow, 9).value = Round(xlWS.Cells(iRow, 9).value / 100 * -1, 3)&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 10).value = paraHöhe.value&lt;BR /&gt;xlWS.Cells(iRow, 10).value = Round(xlWS.Cells(iRow, 10).value / 100, 3)&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 11).value = oOL.y&lt;BR /&gt;xlWS.Cells(iRow, 11).value = Round(xlWS.Cells(iRow, 11).value / 100, 3)&lt;BR /&gt;&lt;BR /&gt;xlWS.Cells(iRow, 13).value = Round((oY1.AngleTo(oY2) * 180) / 3.14159265 - 90, 0)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Next&lt;BR /&gt;&lt;BR /&gt;XL.Cells.Select&lt;BR /&gt;XL.Cells.EntireColumn.AutoFit&lt;BR /&gt;xlWS.Range("A1").Select&lt;BR /&gt;&lt;BR /&gt;sDocName = ThisApplication.ActiveDocument.FullFileName&lt;BR /&gt;If sDocName = "" Then&lt;BR /&gt;sDocName = "c:\temp\x"&lt;BR /&gt;Else&lt;BR /&gt;sDocName = Mid(sDocName, 1, Len(sDocName) - 4)&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;If Dir(sDocName &amp;amp; ".xls") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;i = 1&lt;BR /&gt;Do While Dir(sDocName &amp;amp; "_" &amp;amp; i &amp;amp; ".xls") &amp;lt;&amp;gt; ""&lt;BR /&gt;i = i + 1&lt;BR /&gt;Loop&lt;BR /&gt;sDocName = sDocName &amp;amp; "_" &amp;amp; i&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;xlWB.SaveAs FileName:=sDocName&lt;BR /&gt;&lt;BR /&gt;Set xlWS = Nothing&lt;BR /&gt;Set xlWB = Nothing&lt;BR /&gt;Set XL = Nothing&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Das habe ich mir mal so zusammenkopiert. Es funktioniert auch Teilweise aber noch nicht komplett. Hier wird sozusagen der Winkel zwischen zwei Vektoren bestimmt. Hätte da jemand eine "schönere" Idee also ich weiß, dass Inventor mit Matrixen arbeitet aber leider weiß ich nicht wie ich mir diese ausgeben lassen kann.&lt;/P&gt;&lt;P&gt;Vielen Dank und freundliche Grüße&amp;nbsp;&lt;/P&gt;&lt;P&gt;Valentin&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 06:25:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10296851#M9790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-07T06:25:15Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10297053#M9791</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;kurz vorab.. wäre gut wenn du hierfür einen neuen Beitrag erstellst.&lt;/P&gt;
&lt;P&gt;Zum einen wird ein bereits "gelöster" Betrag nicht mehr so oft angeschaut, was weniger potentielle Helfer bedeutet. Zum anderen ist die neue Frage zwar oft ähnlich, aber nie gleich (sonst wäre die Lösung ja bereits gepostet worden). So bleibt das Forum auch für die anderen Mitglieder übersichtlicher/transparenter. Vielleicht möchtest du das ja noch machen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Zu deinem Vorhaben.. Wenn ich dich richtig verstanden habe möchtest du diese 6 Werte auslesen oder?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-05-07 10_00_14-AHAA-000-AA_2 iProperties.png" style="width: 299px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/916302i3A9FD442B0493C9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-05-07 10_00_14-AHAA-000-AA_2 iProperties.png" alt="2021-05-07 10_00_14-AHAA-000-AA_2 iProperties.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 08:07:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10297053#M9791</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2021-05-07T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10297083#M9792</link>
      <description>&lt;P&gt;Danke für den Tipp habe ich gemacht. Ja genau.&lt;/P&gt;&lt;P&gt;Gruß&lt;/P&gt;&lt;P&gt;Valentin&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 08:17:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10297083#M9792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-07T08:17:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10301874#M9793</link>
      <description>&lt;P&gt;Hallo&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vor ein paar Jahren stand ich vor der gleichen Aufgabe. Ich musste herausfinden, dass die Winkel-Werte nicht ausgelesen werden können. Zumindest sind sie in der Form nirgends hinterlegt. Jede Komponente hat eine Transformationsmatrix (4x4). In dieser ist die genaue Lage (Rotation und Versatz) der Instanz beschrieben. Nur eben in einer anderen Form&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Natürlich kann man diese auch in die Form der drei Winkelangaben umrechnen. Hier der Code dafür..&lt;/P&gt;
&lt;P&gt;Die Funktion ArcCos wird nicht benötigt und ist nur der Vollständigkeit halber dabei.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Private Sub all_angle_of_comp() 'Alle Winkel in Grad
    dPi = Atn(1) * 4
    Dim oOcc As ComponentOccurrence
    Set oOcc = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAssemblyOccurrenceFilter, "Komponente auswählen..")
    Set oRotMat = oOcc.Transformation
    Dim v1 As String, v2 As String, v3 As String, w1 As String, w2 As String, w3 As String
    dPi = Atn(1) * 4
    
    v1 = "X-Versatz = " &amp;amp; Round(oRotMat.Cell(1, 4) * 10, 3)
    v2 = "Y-Versatz = " &amp;amp; Round(oRotMat.Cell(2, 4) * 10, 3)
    v3 = "Z-Versatz = " &amp;amp; Round(oRotMat.Cell(3, 4) * 10, 3)
    w1 = "X-Winkel = " &amp;amp; Round(ArcTan2(oRotMat.Cell(2, 3), oRotMat.Cell(3, 3)) * 180 / dPi, 3)
    w2 = "Y-Winkel = " &amp;amp; Round(-ArcSin(oRotMat.Cell(1, 3)) * 180 / dPi, 3)
    w3 = "Z-Winkel = " &amp;amp; Round(ArcTan2(oRotMat.Cell(1, 2), oRotMat.Cell(1, 1)) * 180 / dPi, 3)
    
    MsgBox oOcc.Name &amp;amp; vbCr &amp;amp; vbCr &amp;amp; v1 &amp;amp; vbCr &amp;amp; v2 &amp;amp; vbCr &amp;amp; v3 &amp;amp; vbCr &amp;amp; vbCr &amp;amp; w1 &amp;amp; vbCr &amp;amp; w2 &amp;amp; vbCr &amp;amp; w3, , "KrA"
End Sub

Private Function ArcSin(x As Double) As Double
    dPi = Atn(1) * 4
    If Abs(x) = 1 Then
        ArcSin = (Sgn(x) * dPi / 2)
    Else
        ArcSin = (Atn(x / Sqr(1 - x ^ 2)))
    End If
End Function

Private Function ArcCos(x As Double) As Double
    dPi = Atn(1) * 4
    If Abs(x) = 1 Then
        ArcCos = (dPi / 2 - (Sgn(x) * dPi / 2))
    Else
        ArcCos = (dPi / 2 - Atn(x / Sqr(1 - x ^ 2)))
    End If
End Function

Public Function ArcTan2(y As Double, x As Double) As Double
    If x &amp;gt; 0 Then
        ArcTan2 = Atn(y / x)
    ElseIf x &amp;lt; 0 Then
        ArcTan2 = Sgn(y) * (Pi - Atn(Abs(y / x)))
    ElseIf y = 0 Then
        ArcTan2 = 0
    Else
        ArcTan2 = Sgn(y) * Pi / 2
    End If
End Function&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Die Ausgabe habe ich dir in eine Msgbox gepackt.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-05-10 08_28_15-Window.png" style="width: 162px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/917006iA7FA1AA2E25F8527/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-05-10 08_28_15-Window.png" alt="2021-05-10 08_28_15-Window.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-05-10 08_28_39-Window.png" style="width: 302px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/917005i1443A7A23EC0CD20/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-05-10 08_28_39-Window.png" alt="2021-05-10 08_28_39-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Makro starten, dann die gewünschte Komponente auswählen und schon erscheint die Msgbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hoffe das hilft dir weiter.&lt;/P&gt;
&lt;P&gt;Viel Erfolg und einen guten Start in die Woche.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Viele Grüße,&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 06:32:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10301874#M9793</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2021-05-10T06:32:06Z</dc:date>
    </item>
    <item>
      <title>Betreff: Zugriff auf aktuellen Versatz mit ilogoc</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10301955#M9794</link>
      <description>&lt;P&gt;Vielen Dank Für deine Hilfe.&lt;/P&gt;&lt;P&gt;Gruß Valentin&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 07:22:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/zugriff-auf-aktuellen-versatz-mit-ilogoc/m-p/10301955#M9794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-10T07:22:40Z</dc:date>
    </item>
  </channel>
</rss>

