<?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: assembly rangeBox / bounding Box without reference parts/assemblies in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10067027#M53421</link>
    <description>&lt;P&gt;Sorry for the delay.&amp;nbsp; Busy morning.&amp;nbsp; The &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-B97150AF-7A1C-4631-92AE-E8229D28F65B" target="_blank" rel="noopener"&gt;AssemblyComponentDefinition.RangeBox Property&lt;/A&gt; returns a &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-50CE3EC8-901C-4979-BB99-0646B6BA3AD5" target="_blank" rel="noopener"&gt;Box object&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp; The box object is a 'transient geometry' object, which means it is a mathematical object held in memory. &amp;nbsp;This type of Box is always aligned with the origin planes of the model, but not necessarily starting at the origin point.&amp;nbsp; It has multiple purposes, properties and methods.&amp;nbsp; You can use its GetBoxData method or just get its MinPoint and/or MaxPoint properties directly, as Point objects.&amp;nbsp; Point objects are also just mathematical only, and have 3 numerical properties (X, Y, &amp;amp; Z).&amp;nbsp; Then you can use their coordinate numbers and some simple subtraction math to determine overall size of the object.&amp;nbsp; For instance if you take the MaxPoin's 'Y' coordinate (a simple decimal number), and subtract the MinPoin's 'Y' coodinate from it, the remaining number is the 'height' of the model along the 'Y-Axis' of the model.&amp;nbsp; You can try/test comparing the results you get from this method to the results you get from the 'Measure' methods you are currently using, and see if they are more accurate for your application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-14C7DC35-2701-4238-A05D-7309C35744ED" target="_blank" rel="noopener"&gt;Here is the link&lt;/A&gt; which talks about the measure method you are using, and what all it includes in its measurement.&amp;nbsp; Scroll to the bottom of the webpage (where it has a header of "Measure.Extents") to find where it is described.&amp;nbsp; It sounds like you have to make sure the visibility of all work features are turned off and all notebook notes are deleted before using that measure technique, to help ensure a more accurate measurement.&amp;nbsp; Having to prepare your model before you use that measure technique leads me to think it may not be the most reliable way to get that measurement, but that's just my opinion.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 16:49:58 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2021-02-08T16:49:58Z</dc:date>
    <item>
      <title>assembly rangeBox / bounding Box without reference parts/assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10057313#M53418</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extract the rangebox measures without taking into account the referenced parts or assemblies.&lt;/P&gt;&lt;P&gt;I am cycling through the occurences of an assembly to update the measures if necessarry (checked out, changed, not read only etc.).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I would need to somehow exclude the occurences which are only in the assembly for reference purposes (according to BOM). Preferably without exaggerating the calculation time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a different set of rangebox measures?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800000;"&gt;XMax&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsLength&lt;/SPAN&gt;, 0)
&lt;SPAN style="color: #800000;"&gt;YMax&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsWidth&lt;/SPAN&gt;, 0)
&lt;SPAN style="color: #800000;"&gt;ZMax&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsHeight&lt;/SPAN&gt;, 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Thanks for your help and suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Guido L.-T.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 14:15:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10057313#M53418</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-02-04T14:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: assembly rangeBox / bounding Box without reference parts/assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10057430#M53419</link>
      <description>&lt;P&gt;There is also the &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-B97150AF-7A1C-4631-92AE-E8229D28F65B" target="_blank" rel="noopener"&gt;AssemblyComponentDefinition.RangeBox Property&lt;/A&gt;, but I'm not sure it will give you any more accurate values than the ones your getting your current way.&amp;nbsp; One thing you may be able to use is a LevelOfDetailRepresentation, in which all those components which are either set as reference or phantom are Suppressed and their suppression state is saved in this representation.&amp;nbsp; Level of detail representation, are mainly just for system memory conservation and performance within larger assemblies, but they have a unique ability that is sometimes useful for other purposes.&amp;nbsp; When those components are suppressed, they aren't loaded into memory, and are also excluded from the physical and mass properties of the document.&amp;nbsp; So, in theory, they wouldn't be included in a RangeBox or Extents measurements, which may result in the more accurate values you are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;If you have time, please... Vote For &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank"&gt;My IDEAS &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/A&gt;or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/" target="_blank"&gt;Inventor 2021 Help &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-forum/bd-p/78/" target="_blank"&gt;Inventor Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-customization/bd-p/120/" target="_blank"&gt;Inventor Customization Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232/" target="_blank"&gt;Inventor Ideas Forum &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 14:51:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10057430#M53419</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-02-04T14:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: assembly rangeBox / bounding Box without reference parts/assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10066011#M53420</link>
      <description>&lt;P&gt;Thanks&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure what the&amp;nbsp;&lt;FONT size="4"&gt;AssemblyComponentDefinition.RangeBox Property returns, is it an array?&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I guess I would need to generate a view where all referenced bodies are supressed and then take the rangebox measures?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 09:45:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10066011#M53420</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-02-08T09:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: assembly rangeBox / bounding Box without reference parts/assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10067027#M53421</link>
      <description>&lt;P&gt;Sorry for the delay.&amp;nbsp; Busy morning.&amp;nbsp; The &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-B97150AF-7A1C-4631-92AE-E8229D28F65B" target="_blank" rel="noopener"&gt;AssemblyComponentDefinition.RangeBox Property&lt;/A&gt; returns a &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-50CE3EC8-901C-4979-BB99-0646B6BA3AD5" target="_blank" rel="noopener"&gt;Box object&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp; The box object is a 'transient geometry' object, which means it is a mathematical object held in memory. &amp;nbsp;This type of Box is always aligned with the origin planes of the model, but not necessarily starting at the origin point.&amp;nbsp; It has multiple purposes, properties and methods.&amp;nbsp; You can use its GetBoxData method or just get its MinPoint and/or MaxPoint properties directly, as Point objects.&amp;nbsp; Point objects are also just mathematical only, and have 3 numerical properties (X, Y, &amp;amp; Z).&amp;nbsp; Then you can use their coordinate numbers and some simple subtraction math to determine overall size of the object.&amp;nbsp; For instance if you take the MaxPoin's 'Y' coordinate (a simple decimal number), and subtract the MinPoin's 'Y' coodinate from it, the remaining number is the 'height' of the model along the 'Y-Axis' of the model.&amp;nbsp; You can try/test comparing the results you get from this method to the results you get from the 'Measure' methods you are currently using, and see if they are more accurate for your application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-14C7DC35-2701-4238-A05D-7309C35744ED" target="_blank" rel="noopener"&gt;Here is the link&lt;/A&gt; which talks about the measure method you are using, and what all it includes in its measurement.&amp;nbsp; Scroll to the bottom of the webpage (where it has a header of "Measure.Extents") to find where it is described.&amp;nbsp; It sounds like you have to make sure the visibility of all work features are turned off and all notebook notes are deleted before using that measure technique, to help ensure a more accurate measurement.&amp;nbsp; Having to prepare your model before you use that measure technique leads me to think it may not be the most reliable way to get that measurement, but that's just my opinion.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 16:49:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10067027#M53421</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-02-08T16:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: assembly rangeBox / bounding Box without reference parts/assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10068673#M53422</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got to read the RangeBox property of the AssemblyComponentDefinition.&lt;/P&gt;&lt;P&gt;However the results seem to be the same for my cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I build in another iLogic which cycles through the occurrences and suppresses everything which is a reference part or assembly according to BOM structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to work fine, until I find some errors later and figure out why this is troubeling in another subroutine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just if anybody is interested:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #db9652;"&gt;XMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ExtentsLength&lt;/SPAN&gt;, 0)
&lt;SPAN style="color: #db9652;"&gt;YMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ExtentsWidth&lt;/SPAN&gt;, 0)
&lt;SPAN style="color: #db9652;"&gt;ZMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ExtentsHeight&lt;/SPAN&gt;, 0)

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;adoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;'Dim aComp As AssemblyComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;adoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ComponentOccurrence&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;supArray&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ArrayList&lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'				supArray.Add("sup")&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;'Position der Detailgenauigkeit erfassen&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Name&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;' Für jede Occurrence (subobjekt in BG) prüfen ob Referenzteil&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Occurrences&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;BOMStructure&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;kReferenceBOMStructure&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #b2b2b5;"&gt;'get current state&lt;/SPAN&gt;
		&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Suppressed&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt; 
			&lt;SPAN style="color: #b2b2b5;"&gt;'array definieren/befüllen merken&lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'			MsgBox("Nicht unterdrückt")&lt;/SPAN&gt;
			&lt;SPAN style="color: #db9652;"&gt;supArray&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"notSup"&lt;/SPAN&gt;)
			&lt;SPAN style="color: #b2b2b5;"&gt;'dann unterdrücken&lt;/SPAN&gt;
			&lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Suppress&lt;/SPAN&gt;
		&lt;SPAN style="color: #ce5c95;"&gt;Else&lt;/SPAN&gt;
			&lt;SPAN style="color: #b2b2b5;"&gt;'ebenfalls array befüllen &lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'			MsgBox("Bereits unterdrückt")&lt;/SPAN&gt;
			&lt;SPAN style="color: #db9652;"&gt;supArray&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Sup"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'InputListBox("Found references?",supArray,supArray(0),"Test")&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;'Maße auslesen&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;XaMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ExtentsLength&lt;/SPAN&gt;, 0)
&lt;SPAN style="color: #db9652;"&gt;YaMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ExtentsWidth&lt;/SPAN&gt;, 0)
&lt;SPAN style="color: #db9652;"&gt;ZaMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ExtentsHeight&lt;/SPAN&gt;, 0)

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;iaOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Integer&lt;/SPAN&gt; = 0

&lt;SPAN style="color: #b2b2b5;"&gt;''Anschließend zurücksetzen&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Occurrences&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;BOMStructure&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;kReferenceBOMStructure&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #b2b2b5;"&gt;'unsuppress if it wasn't suppressed in the first place&lt;/SPAN&gt;
		&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;supArray&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;iaOcc&lt;/SPAN&gt;)=&lt;SPAN style="color: #35b173;"&gt;"notSup"&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt; 
			&lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Unsuppress&lt;/SPAN&gt;
			&lt;SPAN style="color: #db9652;"&gt;iaOcc&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;iaOcc&lt;/SPAN&gt; + 1
		&lt;SPAN style="color: #b2b2b5;"&gt;'leave suppressed &lt;/SPAN&gt;
		&lt;SPAN style="color: #ce5c95;"&gt;Else&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;supArray&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;iaOcc&lt;/SPAN&gt;)=&lt;SPAN style="color: #35b173;"&gt;"Sup"&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt;
			&lt;SPAN style="color: #db9652;"&gt;iaOcc&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;iaOcc&lt;/SPAN&gt;+1
		&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;'Position der Detailgenauigkeit zurücksetzen&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;

&lt;SPAN style="color: #db9652;"&gt;boxMaxX&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;X&lt;/SPAN&gt;*10
&lt;SPAN style="color: #db9652;"&gt;boxMaxY&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Y&lt;/SPAN&gt;*10
&lt;SPAN style="color: #db9652;"&gt;boxMaxZ&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Z&lt;/SPAN&gt;*10
&lt;SPAN style="color: #db9652;"&gt;boxMinX&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;MinPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;X&lt;/SPAN&gt;*10
&lt;SPAN style="color: #db9652;"&gt;boxMinY&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;MinPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Y&lt;/SPAN&gt;*10
&lt;SPAN style="color: #db9652;"&gt;boxMinZ&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;MinPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Z&lt;/SPAN&gt;*10

&lt;SPAN style="color: #db9652;"&gt;XeMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;boxMaxX&lt;/SPAN&gt; - &lt;SPAN style="color: #db9652;"&gt;boxMinX&lt;/SPAN&gt;)
&lt;SPAN style="color: #db9652;"&gt;YeMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;boxMaxY&lt;/SPAN&gt; - &lt;SPAN style="color: #db9652;"&gt;boxMinY&lt;/SPAN&gt;)
&lt;SPAN style="color: #db9652;"&gt;ZeMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;boxMaxZ&lt;/SPAN&gt; - &lt;SPAN style="color: #db9652;"&gt;boxMinZ&lt;/SPAN&gt;)

&lt;SPAN style="color: #b2b2b5;"&gt;'XeMax = Round(Measure.ExtentsLength, 0)&lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'YeMax = Round(Measure.ExtentsWidth, 0)&lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'ZeMax = Round(Measure.ExtentsHeight, 0)&lt;/SPAN&gt;


&lt;SPAN style="color: #db9652;"&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Show&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Start"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" | "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Testmaße"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"  |  "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Endmaße"&lt;/SPAN&gt; &amp;amp; _
		&lt;SPAN style="color: #db9652;"&gt;vbCrLf&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"X = "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;XMax&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"  |  "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Xa = "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;XaMax&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"  |  "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Xe = "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;XeMax&lt;/SPAN&gt; &amp;amp; _
		&lt;SPAN style="color: #db9652;"&gt;vbCrLf&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Y = "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;YMax&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"  |  "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Ya = "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;YaMax&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"  |  "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Ye = "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;YeMax&lt;/SPAN&gt; &amp;amp; _
		&lt;SPAN style="color: #db9652;"&gt;vbCrLf&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Z = "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;ZMax&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"  |  "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Za = "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;ZaMax&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"  |  "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Ze = "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;ZeMax&lt;/SPAN&gt;, _
		&lt;SPAN style="color: #35b173;"&gt;"Maße"&lt;/SPAN&gt;) &lt;SPAN style="color: #b2b2b5;"&gt;'Titel&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Feb 2021 06:42:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/10068673#M53422</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-02-09T06:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: assembly rangeBox / bounding Box without reference parts/assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/13115545#M53423</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the iLogic for&amp;nbsp;&lt;SPAN&gt;bounding Box without reference parts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried to link the iLogic with the event trigger ‘Before safe’. Unfortunately, I get an error message here. Does anyone have any ideas on how to rewrite the iLOgic so that it can be integrated into the event trigger?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 14:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/13115545#M53423</guid>
      <dc:creator>pascal_birkner5K8Z7</dc:creator>
      <dc:date>2024-10-29T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: assembly rangeBox / bounding Box without reference parts/assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/13115800#M53424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16359200"&gt;@pascal_birkner5K8Z7&lt;/a&gt;.&amp;nbsp; What version/year of Inventor are you using?&amp;nbsp; If you are using 2022 or newer version, then you may need to change some of the code from using LOD's (LevelOfDetailRepresentations) to using ModelStates.&amp;nbsp; There are also newer resources available in Invntor's API for getting the size of an assembly that you may prefer, over the standard RangeBox.&amp;nbsp; Attached is a text file containing some code you can try as an iLogic rule for a similar task, but it uses ModelStates, the newer PreciseRangeBox property, converts units to document units, rounds the values to 3 decimal places, and writes the results to the iLogic Log window, instead of showing it in a pop-up message.&amp;nbsp; It will find or create a custom ModelState named "Reference Components Suppressed", activate it, suppress all components set to reference BOMStructure, get the size of the assembly at that point, then switch back to the originally active ModelState.&amp;nbsp; It could also optionally delete that custom ModelState, if you would like, in one of the last lines, but that line is currently commented out.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 16:46:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-rangebox-bounding-box-without-reference-parts/m-p/13115800#M53424</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-10-29T16:46:48Z</dc:date>
    </item>
  </channel>
</rss>

