<?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 Betreff: parallel axis theorem in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8364966#M90667</link>
    <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4427777"&gt;@chandra.shekar.g&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;how could I mesaure between the&amp;nbsp; center of mass and the point directly?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Georg&lt;/P&gt;</description>
    <pubDate>Mon, 29 Oct 2018 07:30:04 GMT</pubDate>
    <dc:creator>GeorgK</dc:creator>
    <dc:date>2018-10-29T07:30:04Z</dc:date>
    <item>
      <title>parallel axis theorem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8355621#M90508</link>
      <description>&lt;DIV class="SnapLinksContainer"&gt;&lt;DIV class="SL_SelectionRect"&gt;&lt;DIV class="SL_SelectionLabel"&gt;Hello together,&lt;BR /&gt;&lt;BR /&gt;is it possible to calculate the moment of inertia to a ucs or given point?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://en.wikipedia.org/wiki/Parallel_axis_theorem" target="_blank"&gt;https://en.wikipedia.org/wiki/Parallel_axis_theorem&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Georg&lt;/DIV&gt;&lt;/DIV&gt;&lt;!--   Used for easily cloning the properly namespaced rect   --&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:12:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8355621#M90508</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2018-10-24T11:12:07Z</dc:date>
    </item>
    <item>
      <title>Betreff: parallel axis theorem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8357963#M90552</link>
      <description>&lt;P&gt;First part:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        m_invApp = GetObject(, "Inventor.Application")

        ' Set a reference to the part document.
        ' This assumes a part document is active.
        Dim oAssyDoc As AssemblyDocument
        oAssyDoc = m_invApp.ActiveDocument

        ' Set a reference to the mass properties object.
        Dim oMassProps As MassProperties
        oMassProps = oAssyDoc.ComponentDefinition.MassProperties

        'Check if mass property results are already available
        'at a high accuracy level or better. If so, simply
        'print out the results, else, set a flag to not cache
        'the results in the document.
        If oMassProps.AvailableAccuracy = MassPropertiesAccuracyEnum.k_High And
      oMassProps.AvailableAccuracy = MassPropertiesAccuracyEnum.k_VeryHigh Then
            ' Set the accuracy to high.
            oMassProps.Accuracy = MassPropertiesAccuracyEnum.k_High

            'Set CacheResultsOnCompute property to False
            'so that results are not saved with the document
            'and hence the document is not 'dirtied'.
            oMassProps.CacheResultsOnCompute = False
        End If

        ' Display the mass properties of the part.
        Debug.Print("Area: " &amp;amp; oMassProps.Area)
        ListBox1.Items.Add("Area: " &amp;amp; oMassProps.Area)


        Debug.Print("Center of Mass: " &amp;amp; oMassProps.CenterOfMass.X &amp;amp; ", " &amp;amp; oMassProps.CenterOfMass.Y &amp;amp; ", " &amp;amp; oMassProps.CenterOfMass.Z)
        ListBox1.Items.Add("Center of Mass: " &amp;amp; oMassProps.CenterOfMass.X &amp;amp; ", " &amp;amp; oMassProps.CenterOfMass.Y &amp;amp; ", " &amp;amp; oMassProps.CenterOfMass.Z)
        ListBox1.Items.Add("")

        Debug.Print("Mass: " &amp;amp; oMassProps.Mass)
        ListBox1.Items.Add("Mass: " &amp;amp; oMassProps.Mass)
        ListBox1.Items.Add("")

        Dim adPrincipalMoments(0 To 3) As Double
        Call oMassProps.PrincipalMomentsOfInertia(adPrincipalMoments(1),
        adPrincipalMoments(2),
        adPrincipalMoments(3))
        Debug.Print("Principal Moments of Inertia: " &amp;amp; adPrincipalMoments(1) &amp;amp; ", " &amp;amp; adPrincipalMoments(2) &amp;amp; ", " &amp;amp; adPrincipalMoments(3))
        ListBox1.Items.Add("Principal Moments of Inertia: " &amp;amp; adPrincipalMoments(1) &amp;amp; ", " &amp;amp; adPrincipalMoments(2) &amp;amp; ", " &amp;amp; adPrincipalMoments(3))
        ListBox1.Items.Add("")

        Dim adRadiusOfGyration(0 To 3) As Double
        Call oMassProps.RadiusOfGyration(adRadiusOfGyration(1),
        adRadiusOfGyration(2),
        adRadiusOfGyration(3))
        Debug.Print("Radius of Gyration: " &amp;amp; adRadiusOfGyration(1) &amp;amp; ", " &amp;amp; adRadiusOfGyration(2) &amp;amp; ", " &amp;amp; adRadiusOfGyration(3))
        ListBox1.Items.Add("Radius of Gyration: " &amp;amp; adRadiusOfGyration(1) &amp;amp; ", " &amp;amp; adRadiusOfGyration(2) &amp;amp; ", " &amp;amp; adRadiusOfGyration(3))
        ListBox1.Items.Add("")

        Debug.Print("Volume: " &amp;amp; oMassProps.Volume)
        ListBox1.Items.Add("Volume: " &amp;amp; oMassProps.Volume)
        ListBox1.Items.Add("")

        Dim Ixx As Double
        Dim Iyy As Double
        Dim Izz As Double
        Dim Ixy As Double
        Dim Iyz As Double
        Dim Ixz As Double
        Call oMassProps.XYZMomentsOfInertia(Ixx, Iyy, Izz, Ixy, Iyz, Ixz)
        Debug.Print("Moments: ")
        ListBox1.Items.Add("Moments: ")
        Debug.Print(" Ixx: " &amp;amp; Ixx)
        ListBox1.Items.Add(" Ixx: " &amp;amp; Ixx)
        Debug.Print(" Iyy: " &amp;amp; Iyy)
        ListBox1.Items.Add(" Iyy: " &amp;amp; Iyy)
        Debug.Print(" Izz: " &amp;amp; Izz)
        ListBox1.Items.Add(" Izz: " &amp;amp; Izz)
        Debug.Print(" Ixy: " &amp;amp; Ixy)
        ListBox1.Items.Add(" Ixy: " &amp;amp; Ixy)
        Debug.Print(" Iyz: " &amp;amp; Iyz)
        ListBox1.Items.Add(" Iyz: " &amp;amp; Iyz)
        Debug.Print(" Ixz: " &amp;amp; Ixz)
        ListBox1.Items.Add(" Ixz: " &amp;amp; Ixz)
    End Sub&lt;/PRE&gt;&lt;P&gt;How could I measure the distance between the center of gravity and a point?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Moment of inertia.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/561685iF11C2CFFDB71AF1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moment of inertia.png" alt="Moment of inertia.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 06:49:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8357963#M90552</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2018-10-25T06:49:42Z</dc:date>
    </item>
    <item>
      <title>Betreff: parallel axis theorem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8360054#M90605</link>
      <description>&lt;P&gt;Use ComponentDefinition.MassProperties.CenterOfMass, if you want intellisense to work, you must use a PartComponentDefinition or an AssemblyComponentDefinition.&amp;nbsp; CenterOfMass is a point, you can then calc against any other point.&amp;nbsp; But I see that you have done that in the posted code.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 18:36:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8360054#M90605</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2018-10-25T18:36:12Z</dc:date>
    </item>
    <item>
      <title>Betreff: parallel axis theorem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8364823#M90663</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/241746"&gt;@GeorgK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To measure distance, GetMiniumumDistance method would be useful. For more details, refer below help documentation link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-240D2F92-2701-4D9D-BCE7-02759538E2FC" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-240D2F92-2701-4D9D-BCE7-02759538E2FC&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 04:36:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8364823#M90663</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-10-29T04:36:56Z</dc:date>
    </item>
    <item>
      <title>Betreff: parallel axis theorem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8364966#M90667</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4427777"&gt;@chandra.shekar.g&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;how could I mesaure between the&amp;nbsp; center of mass and the point directly?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Georg&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 07:30:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8364966#M90667</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2018-10-29T07:30:04Z</dc:date>
    </item>
    <item>
      <title>Betreff: parallel axis theorem</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8364971#M90668</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/241746"&gt;@GeorgK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Initially , create workpoint&amp;nbsp;using coordinate points of&amp;nbsp;center of mass and measure distance between workpoint and point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 07:33:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parallel-axis-theorem/m-p/8364971#M90668</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-10-29T07:33:41Z</dc:date>
    </item>
  </channel>
</rss>

