<?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: Change bom-structure with a custom parameter in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/9061949#M195672</link>
    <description>&lt;P&gt;But TEKENCODE is a Custom iproperties.&amp;nbsp; Sorry for the wrong info.&lt;/P&gt;&lt;P&gt;And the purchased bomstructure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the Custom ipropertie TEKENCODE=&amp;nbsp;&lt;SPAN&gt;B, LB, LK, T, D, DS or K,&amp;nbsp; then the bomstructure must be set to Purchased.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When the Custom ipropertie TEKENCODE= L, then&amp;nbsp;&lt;SPAN&gt;he bomstructure must be set to inseperable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When the Custom ipropertie TEKENCODE= x,&amp;nbsp;then&amp;nbsp;he bomstructure must be set to phantom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In other cases (other letters, or nothing entered), then the bom-structure must be normal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can it be done with ilogic?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 11:19:54 GMT</pubDate>
    <dc:creator>stefan.godfroid</dc:creator>
    <dc:date>2019-10-02T11:19:54Z</dc:date>
    <item>
      <title>Change bom-structure with a custom parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/8582008#M195670</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to change the bom-structur with a custom parameter (TEKENINGCODE).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bom-structure must be Purchased when&amp;nbsp;TEKENINGCODE= B, LB, LK, T, D, DS or K&lt;/P&gt;
&lt;P&gt;The bom-structure must be Inseperable when&amp;nbsp;TEKENINGCODE= L&lt;/P&gt;
&lt;P&gt;The bom-structure must be Phantom when&amp;nbsp;TEKENINGCODE= x&lt;/P&gt;
&lt;P&gt;in other cases (other letters, or nothing entered), then the bom-structure must be normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can i do that with I-logic?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 07:23:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/8582008#M195670</guid>
      <dc:creator>stefan.godfroid</dc:creator>
      <dc:date>2019-02-08T07:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change bom-structure with a custom parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/8582107#M195671</link>
      <description>&lt;P&gt;in part, you can use an ilogic like this, changing the multiple value will change the BOM reference&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;'kDefaultBOMStructure 51969 The default structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kInseparableBOMStructure 51974 The inseparable structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kNormalBOMStructure 51970 The normal structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kPhantomBOMStructure 51971 The phantom structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kPurchasedBOMStructure 51973 The purchased structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kReferenceBOMStructure 51972 The reference structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kVariesBOMStructure 51975 The structure type varies amongst references.&lt;/SPAN&gt;

&lt;SPAN&gt;' TEKENINGCODE is user parameter in part&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;TEKENINGCODE&lt;/SPAN&gt; =&lt;SPAN&gt;"L"&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; = &lt;SPAN&gt;BOMStructureEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kInseparableBOMStructure&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;TEKENINGCODE&lt;/SPAN&gt; =&lt;SPAN&gt;"x"&lt;/SPAN&gt;
	&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; = &lt;SPAN&gt;BOMStructureEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPhantomBOMStructure&lt;/SPAN&gt;
	&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; = &lt;SPAN&gt;BOMStructureEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kNormalBOMStructure&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;InventorVb&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentUpdate&lt;/SPAN&gt;()&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parameter.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/600766iBC8891F90A636B55/image-size/large?v=v2&amp;amp;px=999" role="button" title="parameter.jpg" alt="parameter.jpg" /&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>Fri, 08 Feb 2019 08:30:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/8582107#M195671</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-02-08T08:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change bom-structure with a custom parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/9061949#M195672</link>
      <description>&lt;P&gt;But TEKENCODE is a Custom iproperties.&amp;nbsp; Sorry for the wrong info.&lt;/P&gt;&lt;P&gt;And the purchased bomstructure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the Custom ipropertie TEKENCODE=&amp;nbsp;&lt;SPAN&gt;B, LB, LK, T, D, DS or K,&amp;nbsp; then the bomstructure must be set to Purchased.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When the Custom ipropertie TEKENCODE= L, then&amp;nbsp;&lt;SPAN&gt;he bomstructure must be set to inseperable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When the Custom ipropertie TEKENCODE= x,&amp;nbsp;then&amp;nbsp;he bomstructure must be set to phantom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In other cases (other letters, or nothing entered), then the bom-structure must be normal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can it be done with ilogic?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 11:19:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/9061949#M195672</guid>
      <dc:creator>stefan.godfroid</dc:creator>
      <dc:date>2019-10-02T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change bom-structure with a custom parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/9062232#M195673</link>
      <description>&lt;P&gt;Hello, you can try the following code, I think it should work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; = 51970
&lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;Resume&lt;/SPAN&gt; &lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oProp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"TEKENINGCODE"&lt;/SPAN&gt;) 

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oProp&lt;/SPAN&gt; = &lt;SPAN&gt;"L"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; =  51974
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oProp&lt;/SPAN&gt; = &lt;SPAN&gt;"x"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; =  51971

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oProp&lt;/SPAN&gt; = &lt;SPAN&gt;"B"&lt;/SPAN&gt; &lt;SPAN&gt;Or&lt;/SPAN&gt; &lt;SPAN&gt;oProp&lt;/SPAN&gt; = &lt;SPAN&gt;"LB"&lt;/SPAN&gt; &lt;SPAN&gt;Or&lt;/SPAN&gt; &lt;SPAN&gt;oProp&lt;/SPAN&gt; = &lt;SPAN&gt;"LK"&lt;/SPAN&gt; &lt;SPAN&gt;Or&lt;/SPAN&gt; _
	&lt;SPAN&gt;oProp&lt;/SPAN&gt; = &lt;SPAN&gt;"T"&lt;/SPAN&gt; &lt;SPAN&gt;Or&lt;/SPAN&gt; &lt;SPAN&gt;oProp&lt;/SPAN&gt; = &lt;SPAN&gt;"D"&lt;/SPAN&gt; &lt;SPAN&gt;Or&lt;/SPAN&gt; &lt;SPAN&gt;oProp&lt;/SPAN&gt; = &lt;SPAN&gt;"DS"&lt;/SPAN&gt; &lt;SPAN&gt;Or&lt;/SPAN&gt; &lt;SPAN&gt;oProp&lt;/SPAN&gt; = &lt;SPAN&gt;"K"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; = 51973
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;InventorVb&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentUpdate&lt;/SPAN&gt;()

&lt;SPAN&gt;'kDefaultBOMStructure 51969 The default structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kInseparableBOMStructure 51974 The inseparable structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kNormalBOMStructure 51970 The normal structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kPhantomBOMStructure 51971 The phantom structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kPurchasedBOMStructure 51973 The purchased structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kReferenceBOMStructure 51972 The reference structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kVariesBOMStructure 51975 The structure type varies amongst references.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I hope this helps. Regards&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 13:31:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/9062232#M195673</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-10-02T13:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change bom-structure with a custom parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/9091587#M195674</link>
      <description>&lt;P&gt;It seems to be working!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 08:27:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/change-bom-structure-with-a-custom-parameter/m-p/9091587#M195674</guid>
      <dc:creator>stefan.godfroid</dc:creator>
      <dc:date>2019-10-17T08:27:02Z</dc:date>
    </item>
  </channel>
</rss>

