<?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: User Parameters in Properties in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11588105#M30123</link>
    <description>&lt;PRE&gt;&lt;SPAN&gt;'Dim kDefaultBOMStructure As Integer = 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;'kReferenceBOMStructure 51972 The reference Structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kPurchasedBOMStructure 51973 The purchased Structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;''***EINDE INFO***&lt;/SPAN&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;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Not an Assembly document"&lt;/SPAN&gt;, &lt;SPAN&gt;"Document Type"&lt;/SPAN&gt;)

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAssyCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
			&lt;SPAN&gt;oAssyCompDef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;


&lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Normal"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Inkoop"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; = 51972 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Reference"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Phantom"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Inseperable"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Nov 2022 14:38:45 GMT</pubDate>
    <dc:creator>m.krom</dc:creator>
    <dc:date>2022-11-30T14:38:45Z</dc:date>
    <item>
      <title>User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575037#M30117</link>
      <description>&lt;P&gt;Hello friends&lt;/P&gt;&lt;P&gt;I have searched the forum, but unfortunately found nothing - I hope you are not angry with me if I ask a question that may already be answered.&lt;/P&gt;&lt;P&gt;I have created a few user parameters with lists. Then I made a form so that the user can select the appropriate values there.&lt;/P&gt;&lt;P&gt;Now I want that the selected values are written in certain iProperties, so that these can be read out then also e.g. in the drawing.&lt;/P&gt;&lt;P&gt;What does the code look like? I think it should be an iLogic routine that is executed when saving.&lt;/P&gt;&lt;P&gt;thanks a lot for the info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheeers&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:24:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575037#M30117</guid>
      <dc:creator>tcaG6GZK</dc:creator>
      <dc:date>2022-11-24T08:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575084#M30118</link>
      <description>&lt;P&gt;Maybe I understand you wrong but this is possible without any iLogic code. Try the following:&lt;/P&gt;
&lt;P&gt;Go to your parameter overview and make sure that your parameter is exported.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_1-1669279110110.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1143865i87A5C743E5E71565/image-size/large?v=v2&amp;amp;px=999" role="button" title="JelteDeJong_1-1669279110110.png" alt="JelteDeJong_1-1669279110110.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then go to your iProperties and notice that your parameter is automatically added as a custom iProperty.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_2-1669279220898.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1143867i2CF8F4A6A113EEE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JelteDeJong_2-1669279220898.png" alt="JelteDeJong_2-1669279220898.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But if you want it in a standard iProperty you type a formula that will insert the value in your iProperty.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_3-1669279329623.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1143868i4ED85B36AD006D7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JelteDeJong_3-1669279329623.png" alt="JelteDeJong_3-1669279329623.png" /&gt;&lt;/span&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:42:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575084#M30118</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-11-24T08:42:19Z</dc:date>
    </item>
    <item>
      <title>Betreff: User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575094#M30119</link>
      <description>&lt;P&gt;Hi Jelte&lt;/P&gt;&lt;P&gt;thx for your reply!!!&lt;/P&gt;&lt;P&gt;but i have no such parameters&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tcaG6GZK_0-1669279623199.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1143869iB0C31CFE9CF6E06B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tcaG6GZK_0-1669279623199.png" alt="tcaG6GZK_0-1669279623199.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i can not klick on export - there is nothing to choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have texparameters with a list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx in advance&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:47:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575094#M30119</guid>
      <dc:creator>tcaG6GZK</dc:creator>
      <dc:date>2022-11-24T08:47:44Z</dc:date>
    </item>
    <item>
      <title>Betreff: User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575144#M30120</link>
      <description>&lt;P&gt;In that case you can use iLogic. Try a rule like this:&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;iProperties.Value("Project", "Description") = MyTextParameter&lt;/LI-CODE&gt;
&lt;P&gt;"Project" is the tab in the iProperties window,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Description" is the property name as is in the iProperty window,&lt;/P&gt;
&lt;P&gt;MyTextParameter (without the double quotes!) is your parameter name&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 09:10:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575144#M30120</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-11-24T09:10:09Z</dc:date>
    </item>
    <item>
      <title>Betreff: User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575831#M30121</link>
      <description>&lt;P&gt;Hi Jelte&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you´re amazing!! Thanks - it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;may I ask you another question?? Is it possible to see in a Form the BOM Structure of a part so I can choose it or change it?? That would help a lot!!&lt;/P&gt;&lt;P&gt;thx in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 14:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11575831#M30121</guid>
      <dc:creator>tcaG6GZK</dc:creator>
      <dc:date>2022-11-24T14:36:02Z</dc:date>
    </item>
    <item>
      <title>Betreff: User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11588097#M30122</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;'Dim kDefaultBOMStructure As Integer = 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;'kReferenceBOMStructure 51972 The reference Structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kPurchasedBOMStructure 51973 The purchased Structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;''***END INFO***&lt;/SPAN&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;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Not a Part Document"&lt;/SPAN&gt;, &lt;SPAN&gt;"Document Type"&lt;/SPAN&gt;)

	
&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;	

	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDocCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartComponentDefinition&lt;/SPAN&gt;
		&lt;SPAN&gt;oDocCompDef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
		
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
			

&lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Normal"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Inkoop"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; = 51972 &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Reference"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Phantom"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:34:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11588097#M30122</guid>
      <dc:creator>m.krom</dc:creator>
      <dc:date>2022-11-30T14:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11588105#M30123</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;'Dim kDefaultBOMStructure As Integer = 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;'kReferenceBOMStructure 51972 The reference Structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;'kPurchasedBOMStructure 51973 The purchased Structure type.&lt;/SPAN&gt;
&lt;SPAN&gt;''***EINDE INFO***&lt;/SPAN&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;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Not an Assembly document"&lt;/SPAN&gt;, &lt;SPAN&gt;"Document Type"&lt;/SPAN&gt;)

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAssyCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
			&lt;SPAN&gt;oAssyCompDef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;


&lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Normal"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Inkoop"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;BOMStructure&lt;/SPAN&gt; = 51972 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Reference"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Phantom"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&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;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Inseperable"&lt;/SPAN&gt;, &lt;SPAN&gt;"BOM Type"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:38:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11588105#M30123</guid>
      <dc:creator>m.krom</dc:creator>
      <dc:date>2022-11-30T14:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11588123#M30124</link>
      <description>&lt;P&gt;Imports Inventor.UnitsTypeEnum&lt;/P&gt;&lt;P&gt;'Dim kDefaultBOMStructure As Integer = 51969 ''The Default Structure type.&lt;BR /&gt;'kInseparableBOMStructure 51974 The inseparable Structure type.&lt;BR /&gt;'kNormalBOMStructure 51970 The normal Structure type.&lt;BR /&gt;'kPhantomBOMStructure 51971 The phantom Structure type.&lt;BR /&gt;'kReferenceBOMStructure 51972 The reference Structure type.&lt;BR /&gt;'kPurchasedBOMStructure 51973 The purchased Structure type.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim oPartDoc As Document&lt;BR /&gt;oPartDoc = ThisDoc.Document&lt;/P&gt;&lt;P&gt;If oPartDoc.DocumentType &amp;lt;&amp;gt; kPartDocumentObject Then&lt;BR /&gt;MessageBox.Show("This is not a part document", "Document type")&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;If oPartDoc.DocumentType = kPartDocumentObject Then&lt;/P&gt;&lt;P&gt;Dim oPartCompDef As PartComponentDefinition&lt;BR /&gt;oPartCompDef = oPartDoc.ComponentDefinition&lt;BR /&gt;&lt;BR /&gt;Dim oParams As Parameters&lt;BR /&gt;oParams=oPartCompDef.Parameters&lt;BR /&gt;&lt;BR /&gt;Dim oUserParams As UserParameters&lt;BR /&gt;oUserParams=oParams.UserParameters&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;otester = oUserParams.Item("BOMs")&lt;BR /&gt;Catch&lt;BR /&gt;oInsulationType=oUserParams.AddByValue("BOMs", "Normal", kTextUnits)&lt;BR /&gt;MultiValue.SetList("BOMs", "Normal", "Phantom", "Reference", "Purchaced")&lt;BR /&gt;End Try&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;iLogicVb.UpdateWhenDone = True&lt;/P&gt;&lt;P&gt;Dim MYCHOISE As String = InputListBox("Make a choise...", MultiValue.List("BOMs"), BOMs, Title := "PART BOM", ListName := "List")&lt;/P&gt;&lt;P&gt;If MYCHOISE = "Purchaced" Then&lt;BR /&gt;oPartDoc.ComponentDefinition.BOMStructure = BOMStructureEnum.kPurchasedBOMStructure&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else If MYCHOISE = "Normal" Then&lt;BR /&gt;oPartDoc.ComponentDefinition.BOMStructure = BOMStructureEnum.kNormalBOMStructure&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else If MYCHOISE ="Phantom" Then&lt;BR /&gt;oPartDoc.ComponentDefinition.BOMStructure = BOMStructureEnum.kPhantomBOMStructure&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Else If MYCHOISE ="Reference" Then&lt;BR /&gt;oPartDoc.ComponentDefinition.BOMStructure = BOMStructureEnum.kReferenceBOMStructure&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;oPartDoc.ComponentDefinition.Parameters.Item("BOMs").delete&lt;/P&gt;&lt;P&gt;iLogicVb.UpdateWhenDone = True&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:48:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11588123#M30124</guid>
      <dc:creator>m.krom</dc:creator>
      <dc:date>2022-11-30T14:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11588395#M30125</link>
      <description>&lt;P&gt;Hi guys.  Just dropping a couple tips/pointers in here.&lt;/P&gt;
&lt;P&gt;If you want to be able to select a variation from the BOMStructureEnum from a list to then apply to the BOMStructure property of the active document via iLogic, the following is likely the simplest way to do that.  With this, you do not even need to create a multi-value parameter, because its creates it own list, shows it to the user so they can choose one, then sets the chosen value to the document, all using just 3 lines of code.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oBOMStrTypes As List(Of String) = System.Enum.GetNames(GetType(Inventor.BOMStructureEnum)).Cast(Of String).ToList
Dim oChosenBOMStrType As String = InputListBox("Prompt", oBOMStrTypes)
ThisDoc.Document.ComponentDefinition.BOMStructure = System.Enum.Parse(GetType(BOMStructureEnum), oChosenBOMStrType)&lt;/LI-CODE&gt;
&lt;P&gt;As for the Text type and Boolean type multi-value user parameters that you would like to create custom iProperties for...the fact that there is no checkbox for exporting them in the Parameters dialog box has been a thorn in our sides for a great many years, and there are several methods for dealing with that situation floating around out there.  Generally when I create them, I am planning on using them in an iLogic rule for helping to control something, and I pretty much always want them to have a custom iProperty counterpart too, so I personally have an iLogic rule that I use to iterate through every user parameter, which checks if its units are 'Text' or 'Boolean', and if so, makes sure there is a custom iProperty to match it, with the same value.  And I have that iLogic rule listed under the event named 'Any User Parameter Change' within the Event Triggers dialog box, on both the 'Parts' and 'Assemblies' tabs, so that these values will always stay accurate, without me having to think about it.  There are a couple examples of codes like this in the article I wrote back in 2019 (link below).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/community/article/269236" target="_blank" rel="noopener"&gt;Export All Text &amp;amp; Boolean Type Parameters To Custom iProperties Using iLogic/VBA&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:07:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11588395#M30125</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-11-30T16:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: User Parameters in Properties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11590092#M30126</link>
      <description>&lt;P&gt;Thanks for the tips. very helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings from the Netherlands&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:38:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-parameters-in-properties/m-p/11590092#M30126</guid>
      <dc:creator>m.krom</dc:creator>
      <dc:date>2022-12-01T08:38:28Z</dc:date>
    </item>
  </channel>
</rss>

