<?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 Re: getting longest dimension of a part and reference to OBM in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/getting-longest-dimension-of-a-part-and-reference-to-obm/m-p/7144507#M275205</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to elaborate on Johnson Shiue comment. Here is an extract from my rule.&lt;/P&gt;
&lt;P&gt;Play with it and adjust it to suit your needs. Also, as mentioned, you need to create the corresponding user parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, "HEIGHT,WIDTH,and THICK"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oPart As PartDocument
oPart = ThisApplication.ActiveDocument
oDoc = ThisApplication.ActiveDocument

		'Turn off work features so they don't calculate
		oPart.ObjectVisibility.AllWorkFeatures = False
		InventorVb.DocumentUpdate()
Dim sizes As New List(Of Double)
sizes.Add(Measure.ExtentsLength)
sizes.Add(Measure.ExtentsWidth)
sizes.Add(Measure.ExtentsHeight)

sizes.Sort()
	Parameter("HEIGHT") = sizes(2)
	Parameter("WIDTH") = sizes(1)
	'Parameter("THICK") = sizes(0)
oPart.ObjectVisibility.AllWorkFeatures = True&lt;BR /&gt;iLogicVb.UpdateWhenDone = True&lt;/PRE&gt;</description>
    <pubDate>Mon, 12 Jun 2017 00:00:15 GMT</pubDate>
    <dc:creator>rhasell</dc:creator>
    <dc:date>2017-06-12T00:00:15Z</dc:date>
    <item>
      <title>getting longest dimension of a part and reference to OBM</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/getting-longest-dimension-of-a-part-and-reference-to-obm/m-p/7142949#M275203</link>
      <description>&lt;P&gt;Hi I need help I'm with getting the longest measurement&amp;nbsp;of a part but completely&amp;nbsp;automated ussing ilogic. I want to get cut lengths any help would be appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 09:44:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/getting-longest-dimension-of-a-part-and-reference-to-obm/m-p/7142949#M275203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-10T09:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: getting longest dimension of a part and reference to OBM</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/getting-longest-dimension-of-a-part-and-reference-to-obm/m-p/7143159#M275204</link>
      <description>&lt;P&gt;Hi! This should not be too hard. Here is a simple rule you can use. BTW, Length, Width, and Height are user parameters in a part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Length=Measure.ExtentsLength&lt;BR /&gt;Width=Measure.ExtentsWidth&lt;BR /&gt;Height=Measure.ExtentsHeight&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 14:09:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/getting-longest-dimension-of-a-part-and-reference-to-obm/m-p/7143159#M275204</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2017-06-10T14:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: getting longest dimension of a part and reference to OBM</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/getting-longest-dimension-of-a-part-and-reference-to-obm/m-p/7144507#M275205</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to elaborate on Johnson Shiue comment. Here is an extract from my rule.&lt;/P&gt;
&lt;P&gt;Play with it and adjust it to suit your needs. Also, as mentioned, you need to create the corresponding user parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, "HEIGHT,WIDTH,and THICK"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oPart As PartDocument
oPart = ThisApplication.ActiveDocument
oDoc = ThisApplication.ActiveDocument

		'Turn off work features so they don't calculate
		oPart.ObjectVisibility.AllWorkFeatures = False
		InventorVb.DocumentUpdate()
Dim sizes As New List(Of Double)
sizes.Add(Measure.ExtentsLength)
sizes.Add(Measure.ExtentsWidth)
sizes.Add(Measure.ExtentsHeight)

sizes.Sort()
	Parameter("HEIGHT") = sizes(2)
	Parameter("WIDTH") = sizes(1)
	'Parameter("THICK") = sizes(0)
oPart.ObjectVisibility.AllWorkFeatures = True&lt;BR /&gt;iLogicVb.UpdateWhenDone = True&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 00:00:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/getting-longest-dimension-of-a-part-and-reference-to-obm/m-p/7144507#M275205</guid>
      <dc:creator>rhasell</dc:creator>
      <dc:date>2017-06-12T00:00:15Z</dc:date>
    </item>
  </channel>
</rss>

