<?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 Getting dimensions of a block askew from a plane in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-dimensions-of-a-block-askew-from-a-plane/m-p/5913492#M59952</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get my assemblies to detect and set the thickness of sheet metal parts by measuring the part, then defining the smallest dimension and setting that as thickness.&lt;/P&gt;&lt;P&gt;The rule I have works if the part lies parallel to the origin planes. Since we're working with derived parts here, parts are not always parallel to these planes (see attached image)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below is what I use to get the dimensions at this moment. What do I need to change so it will also work with parts set at an angle to the origin planes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoogte_1 = CStr(Round(Measure.ExtentsHeight))&lt;BR /&gt;Lengte_1 = CStr(Round(Measure.ExtentsLength))&lt;BR /&gt;Breedte_1 = CStr(Round(Measure.ExtentsWidth))&lt;BR /&gt;&lt;BR /&gt;Dimensions_Make_Component = MinOfMany(Hoogte_1, Lengte_1, Breedte_1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Dimensions_Make_Component = 0.5 Then&lt;/P&gt;&lt;P&gt;SheetMetal.SetActiveStyle etc. etc.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2015 12:27:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-18T12:27:58Z</dc:date>
    <item>
      <title>Getting dimensions of a block askew from a plane</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-dimensions-of-a-block-askew-from-a-plane/m-p/5913492#M59952</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get my assemblies to detect and set the thickness of sheet metal parts by measuring the part, then defining the smallest dimension and setting that as thickness.&lt;/P&gt;&lt;P&gt;The rule I have works if the part lies parallel to the origin planes. Since we're working with derived parts here, parts are not always parallel to these planes (see attached image)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below is what I use to get the dimensions at this moment. What do I need to change so it will also work with parts set at an angle to the origin planes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoogte_1 = CStr(Round(Measure.ExtentsHeight))&lt;BR /&gt;Lengte_1 = CStr(Round(Measure.ExtentsLength))&lt;BR /&gt;Breedte_1 = CStr(Round(Measure.ExtentsWidth))&lt;BR /&gt;&lt;BR /&gt;Dimensions_Make_Component = MinOfMany(Hoogte_1, Lengte_1, Breedte_1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Dimensions_Make_Component = 0.5 Then&lt;/P&gt;&lt;P&gt;SheetMetal.SetActiveStyle etc. etc.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 12:27:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/getting-dimensions-of-a-block-askew-from-a-plane/m-p/5913492#M59952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T12:27:58Z</dc:date>
    </item>
  </channel>
</rss>

