<?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 Surfacebody properties via api in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/4853851#M125802</link>
    <description>&lt;P&gt;In a multibody part document you can right-click an individual solid body and select properties. The information there includes mass properties from the single surface body. There does not seem to be any path to obtain the same via the api, is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2014 07:04:09 GMT</pubDate>
    <dc:creator>nmunro</dc:creator>
    <dc:date>2014-03-04T07:04:09Z</dc:date>
    <item>
      <title>Surfacebody properties via api</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/4853851#M125802</link>
      <description>&lt;P&gt;In a multibody part document you can right-click an individual solid body and select properties. The information there includes mass properties from the single surface body. There does not seem to be any path to obtain the same via the api, is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2014 07:04:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/4853851#M125802</guid>
      <dc:creator>nmunro</dc:creator>
      <dc:date>2014-03-04T07:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Surfacebody properties via api</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/4857191#M125803</link>
      <description>&lt;P&gt;Correct, MassProperties is only accessible at the PartComponentDefinition level, I don't see a direct way to retrieve that info for a specific solidbody.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggestions for workaround could involve:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Suppressing all other bodies by suppressing the features generating them and compute MassProperties for the part. But it might not work in all cases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Creating a temp part, copying the relevant body in that new part and get MassProperties for that temp part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it helps,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;______________________________________________________________ &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0174DF"&gt;If my post answers your question, please click the &lt;STRONG&gt;"Accept as Solution"&lt;/STRONG&gt; &lt;BR /&gt;&lt;BR /&gt;button. This helps everyone find answers more quickly!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 09:07:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/4857191#M125803</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2014-03-05T09:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Surfacebody properties via api</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/4857682#M125804</link>
      <description>&lt;P&gt;Hi Philippe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, as I suspected. Can I put in a request to have this added to the api since it is available in the software.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 13:51:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/4857682#M125804</guid>
      <dc:creator>nmunro</dc:creator>
      <dc:date>2014-03-05T13:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Surfacebody properties via api</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/5348389#M125805</link>
      <description>&lt;P&gt;I'd like to see this functionallity added to the API as well. Have there been any other workarounds since the last post? Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Thomas&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2014 15:09:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/5348389#M125805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-20T15:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Surfacebody properties via api</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/5352267#M125806</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the moment there is no further suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 21:54:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/5352267#M125806</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2014-10-21T21:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Surfacebody properties via api</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/5431900#M125807</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can get the (solid) surfacebody volume directly via surfacebody.volume(tolerance). You can also calculate area of the surfacebody iterating and adding the area of all its Faces. Multiply part density and surfacebody volume and you also get mass.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't figure out how to get centers of gravity of (solid) surfacebodies. Any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sašo Prijatelj&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 07:44:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/5431900#M125807</guid>
      <dc:creator>SašoPrijatelj</dc:creator>
      <dc:date>2014-12-04T07:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Surfacebody properties via api</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/5434348#M125808</link>
      <description>&lt;P&gt;Same answer as previously, using MassProperties.CenterOfMass property:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;MassProperties is only accessible at the PartComponentDefinition level, I don't see a direct way to retrieve that info for a specific solidbody.
 
Suggestions for workaround could involve:
 
- Suppressing all other bodies by suppressing the features generating them and compute MassProperties for the part. But it might not work in all cases.

- Creating a temp part, copying the relevant body in that new part and get MassProperties for that temp part.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 18:37:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/surfacebody-properties-via-api/m-p/5434348#M125808</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2014-12-05T18:37:50Z</dc:date>
    </item>
  </channel>
</rss>

