<?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: how to allow custom values in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9174402#M103535</link>
    <description>&lt;P&gt;Great job, thank's a lot !&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2019 22:09:33 GMT</pubDate>
    <dc:creator>marcin_bargiel</dc:creator>
    <dc:date>2019-11-29T22:09:33Z</dc:date>
    <item>
      <title>how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173223#M103516</link>
      <description>&lt;P&gt;How to set by iLogic or VB :&amp;nbsp; "allow custom values" for all user multivalue parameters? (when creating them or later)&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 08:32:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173223#M103516</guid>
      <dc:creator>marcin_bargiel</dc:creator>
      <dc:date>2019-11-29T08:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173303#M103519</link>
      <description>&lt;P&gt;Hello Marcin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameter has an attribute&lt;/P&gt;&lt;P&gt;UserParameters.item(1).attributeSets.item("com.autodesk.inventor.parameterAttributes").item("AllowCustomValue").value = 0/1&lt;/P&gt;&lt;P&gt;this should help you, I hope&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 09:14:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173303#M103519</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2019-11-29T09:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173356#M103521</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Thank's but it seems that it works, but only if i first manually set "allow custom value",&lt;/P&gt;&lt;P&gt;without setting at beginning i got failure (i quess that item AllowCustomValue not exist !)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then by this code i can only change seeting from 0 or 1&lt;/P&gt;&lt;P&gt;UserParameters.item(1).attributeSets.item("com.autodesk.inventor.parameterAttributes").item("AllowCustomValue").value = 0/1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 09:49:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173356#M103521</guid>
      <dc:creator>marcin_bargiel</dc:creator>
      <dc:date>2019-11-29T09:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173386#M103522</link>
      <description>&lt;P&gt;as soon as you make a multi value parameter, the attribute will also be created for that parameter.&lt;/P&gt;&lt;P&gt;value = 0&amp;nbsp; : check is off&lt;/P&gt;&lt;P&gt;value = 1&amp;nbsp;&amp;nbsp; : check is on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when a parameter is not a multi value parameter the attribute does not exist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 10:02:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173386#M103522</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2019-11-29T10:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173414#M103524</link>
      <description>&lt;P&gt;could You please look my file? inv. 2020.2&lt;/P&gt;&lt;P&gt;i disagree with You, attribute is not created, but true is that it should be created &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 10:14:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9173414#M103524</guid>
      <dc:creator>marcin_bargiel</dc:creator>
      <dc:date>2019-11-29T10:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9174042#M103530</link>
      <description>&lt;P&gt;Hello Marcin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;apperently the attribute is not created if you make the multyvalue by code....&lt;/P&gt;&lt;P&gt;so I altered your iLogic code a little so that the attribute is created.&lt;/P&gt;&lt;P&gt;the condition still is there that it should be a multi value!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try it, and let me know&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 16:49:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9174042#M103530</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2019-11-29T16:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9174402#M103535</link>
      <description>&lt;P&gt;Great job, thank's a lot !&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 22:09:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9174402#M103535</guid>
      <dc:creator>marcin_bargiel</dc:creator>
      <dc:date>2019-11-29T22:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9174921#M103536</link>
      <description>&lt;P&gt;One line must be added, if not, it worked only after manualy open list of parameters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;p&lt;SPAN style="color: #800000;"&gt;cd&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"param_N"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;AttributeSets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"com.autodesk.inventor.ParameterAttributes"&lt;/SPAN&gt;)
		&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 16:34:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9174921#M103536</guid>
      <dc:creator>marcin_bargiel</dc:creator>
      <dc:date>2019-11-30T16:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9361161#M106703</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Marcin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;exactly the functionality described here would help me a lot. Unfortunately, I am not getting the rule to run smoothly. I guess it has to do with the fact that I am creating the MultiValueList Parameters with an ilogic rule and therefore the AttributeSet does not seem to be created with it. Is it possible to post the complete rule text here again. That would be great. Thanks a los.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards Ben&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 17:28:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9361161#M106703</guid>
      <dc:creator>b.vonklass</dc:creator>
      <dc:date>2020-03-05T17:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9365152#M106777</link>
      <description>&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Main&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;Add_Parameters&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Add_Parameters&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;pcd&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;pcd&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocumentType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
	
&lt;SPAN style="color: #800080;"&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;UpdateAfterChange&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;SetValueOptions&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;'example to only setmulivalue&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt; = 10
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"k_flange_N"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;) &amp;lt;&amp;gt; -100 &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt; : &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByExpression&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"k_flange_N"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;, 1, &lt;SPAN style="color: #008080;"&gt;"mm"&lt;/SPAN&gt;)  : &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt; : &lt;SPAN style="color: #800080;"&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;SetList&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"k_flange_N"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;, -1, 0, 1) : &lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;


&lt;SPAN style="color: #808080;"&gt;'example to setmulivalue and allow custom value&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt; = 20
&lt;SPAN style="color: #800000;"&gt;index_no&lt;/SPAN&gt; = 2
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"set_N"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;) &amp;lt;&amp;gt; -100 &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt; : &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByExpression&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"set_N"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;, 0, &lt;SPAN style="color: #008080;"&gt;"mm"&lt;/SPAN&gt;)  : &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt; : &lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt; 
	&lt;SPAN style="color: #800080;"&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;SetList&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"set_N"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;, -2, -1, 0, 1) 
	&lt;SPAN style="color: #800000;"&gt;Set_Attributes_To_Mulitivalue&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"set_N"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;)
	&lt;SPAN style="color: #808080;"&gt;'set default index value&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oParam1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;UserParameter&lt;/SPAN&gt;  
	&lt;SPAN style="color: #800000;"&gt;oParam1&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;componentdefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"set_N"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;i&lt;/SPAN&gt;)
	&lt;SPAN style="color: #800000;"&gt;oParam1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ExpressionList&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SetExpressionList&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oParam1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ExpressionList&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetExpressionList&lt;/SPAN&gt;(), &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;index_no&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;RuleParametersOutput&lt;/SPAN&gt;()							
&lt;SPAN style="color: #800080;"&gt;InventorVb&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;DocumentUpdate&lt;/SPAN&gt;()

&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;


&lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Set_Attributes_To_Mulitivalue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;PARAM_NAME&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;pcd&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;pcd&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;paramAttribSet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AttributeSet&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;pcd&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;PARAM_NAME&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;AttributeSets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"com.autodesk.inventor.ParameterAttributes"&lt;/SPAN&gt;)
        &lt;SPAN style="color: #800000;"&gt;paramAttribSet&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;pcd&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;PARAM_NAME&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;AttributeSets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"com.autodesk.inventor.ParameterAttributes"&lt;/SPAN&gt;)

        &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
            &lt;SPAN style="color: #800000;"&gt;paramAttribSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"AllowCustomValue"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;ValueTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kIntegerType&lt;/SPAN&gt;, 0)
        &lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ex&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Exception&lt;/SPAN&gt;

        &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;

        &lt;SPAN style="color: #800000;"&gt;paramAttribSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"AllowCustomValue"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = 1
	&lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt;
		
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Function&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 Mar 2020 07:57:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9365152#M106777</guid>
      <dc:creator>marcin_bargiel</dc:creator>
      <dc:date>2020-03-08T07:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to allow custom values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9374188#M106909</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@2A0F083D272D63CF5E4A44A10756DF5D/emoticons/1f600.png" alt=":grinning_face:" title=":grinning_face:" /&gt;! Exactly what I was looking for. Works great!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:00:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-allow-custom-values/m-p/9374188#M106909</guid>
      <dc:creator>b.vonklass</dc:creator>
      <dc:date>2020-03-12T13:00:46Z</dc:date>
    </item>
  </channel>
</rss>

