<?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: iLogic code to create a User Parameter in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/6257841#M139704</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/547141"&gt;@ravikmb5﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Ravik,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that just saved my day. I tried to get to know the internal name for the parameter - tried to "call",&lt;/P&gt;&lt;P&gt;well tried and tried to declare a parameter existing as a value to copy the value... also tried to declare,&lt;/P&gt;&lt;P&gt;yet got to a lambada error message. Declaring the open document was part of the idea.... yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not skilled at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I ask for the reference you´re using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thank you very much for making that work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2016 16:24:44 GMT</pubDate>
    <dc:creator>Logos_Atum</dc:creator>
    <dc:date>2016-04-07T16:24:44Z</dc:date>
    <item>
      <title>iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/3109178#M139695</link>
      <description>&lt;P&gt;I want to use iLogic to create User Parameters with Multi-Value lists filled with info from an excel spreadsheet. What is the code to create a new User Parameter? I can't seem to find it in the help wiki.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2011 16:09:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/3109178#M139695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-29T16:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/3109726#M139696</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;I want to use iLogic to create User Parameters with Multi-Value lists filled with info from an excel spreadsheet. What is the code to create a new User Parameter? I can't seem to find it in the help wiki.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Format:HTML Format&lt;BR /&gt;Version:1.0&lt;BR /&gt;StartHTML: 165&lt;BR /&gt;EndHTML: 7452&lt;BR /&gt;StartFragment: 314&lt;BR /&gt;EndFragment: 7420&lt;BR /&gt;StartSelection: 314&lt;BR /&gt;EndSelection: 314&lt;BR /&gt;&lt;BR /&gt;&lt;!-- StartFragment --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;Setting an userParameter as inches&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AddByExpression&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Length_inch&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;UnitsTypeEnum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;kInchLengthUnits&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AddByExpression&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Width_inch&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;Setting an userParameter as Millimeteres&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AddByExpression&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Length_mm&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;UnitsTypeEnum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;kMillimeterLengthUnits&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AddByExpression&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Width_mm&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;mm&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;Setting an userParameter as text parameter&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AddByValue&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;bule&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;UnitsTypeEnum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;kTextUnits&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AddByValue&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;red&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;UnitsTypeEnum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;kTextUnits&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AddByValue&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;yellow&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;UnitsTypeEnum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;kTextUnits&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&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;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the above example creates single user parameters&lt;/P&gt;&lt;P&gt;but i dont know wheteher there is a way to create a Multi-value user parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2011 16:02:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/3109726#M139696</guid>
      <dc:creator>ravikmb5</dc:creator>
      <dc:date>2011-07-30T16:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/3110554#M139697</link>
      <description>&lt;P&gt;Thank you Ravi. That works.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2011 15:04:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/3110554#M139697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-01T15:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/4365867#M139698</link>
      <description>&lt;P&gt;it's possible to try,catch and add a user parameter in each parts of assembly with ilogic???&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 10:19:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/4365867#M139698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-14T10:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/4374468#M139699</link>
      <description>&lt;P&gt;Take a look at this blog post for some help with updating parts associated with an assembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://modthemachine.typepad.com/my_weblog/2013/08/updating-parts-through-an-assembly.html" target="_blank"&gt;http://modthemachine.typepad.com/my_weblog/2013/08/updating-parts-through-an-assembly.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 18:46:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/4374468#M139699</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2013-08-20T18:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/5277367#M139700</link>
      <description>oMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters&lt;BR /&gt;oParameter=oMyParameter.AddByValue("Material", "Steel, S275", UnitsTypeEnum.kTextUnits)&lt;BR /&gt;MultiValue.SetList("Material", "Keruing Board", "Aluminum 1050", "Aluminum Alloy 5251", "Aluminum Alloy 5454 h22", "Aluminum 6061", "Domex 460 MCD", "DX51D Z275", "GRP", "Nylon 6/6", "Plywood, Finish", "Rubber", "Rubber EPDM", "Steel, S275", "Steel, S275JR", "Steel, S355", "Steel, S355J0", "Steel, S355J2+N", "Steel, S355JR")&lt;BR /&gt;&lt;BR /&gt;for example creates multi value parameters</description>
      <pubDate>Tue, 16 Sep 2014 13:39:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/5277367#M139700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-16T13:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/5350399#M139701</link>
      <description>&lt;P&gt;Thanks ravikmb5 your rule works wel when I run it as an external rule. But how can I make it work without having to open the part. I.e in edit mode &amp;nbsp;so the parameter is created in the part being edited. At the moment it creates the parameter but in the assembly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is how i changed it:&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Parameters&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;UserParameters&lt;/SPAN&gt;
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Setting an userParameter as text parameter&lt;/SPAN&gt;
&lt;SPAN&gt;oParameter&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AddByValue&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;JOB_NUMBER&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;UnitsTypeEnum&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;kTextUnits&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;oParameter&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;oMyParameter&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AddByValue&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;JOB_DESCRIPTION&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;UnitsTypeEnum&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;kTextUnits&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;Regards&lt;BR /&gt;Andrew&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Oct 2014 10:25:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/5350399#M139701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-21T10:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/5606377#M139702</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Thanks ravikmb5 your rule works wel when I run it as an external rule. But how can I make it work without having to open the part.&lt;STRONG&gt; I.e in edit mode &amp;nbsp;&lt;/STRONG&gt;so the parameter is created in the part being edited. At the moment it creates the parameter but in the assembly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;edit mode&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;i guess u are in assembly mode......&lt;/P&gt;
&lt;P&gt;do u want&amp;nbsp;to create part&amp;nbsp;parameters from&amp;nbsp;assy&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 24 Apr 2015 03:41:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/5606377#M139702</guid>
      <dc:creator>ravikmb5</dc:creator>
      <dc:date>2015-04-24T03:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/5606449#M139703</link>
      <description>&lt;P&gt;Thanks for your reply.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I am in the .iam and want to run a rule to insert custom parameters into the parts to automatically&amp;nbsp;change the "Project" parameter by entering a value in a form, but at the moment I have to open every part to copy and run the rule. In stead of just double clicking on the part and running the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 06:02:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/5606449#M139703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T06:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/6257841#M139704</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/547141"&gt;@ravikmb5﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Ravik,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that just saved my day. I tried to get to know the internal name for the parameter - tried to "call",&lt;/P&gt;&lt;P&gt;well tried and tried to declare a parameter existing as a value to copy the value... also tried to declare,&lt;/P&gt;&lt;P&gt;yet got to a lambada error message. Declaring the open document was part of the idea.... yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not skilled at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I ask for the reference you´re using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thank you very much for making that work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 16:24:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/6257841#M139704</guid>
      <dc:creator>Logos_Atum</dc:creator>
      <dc:date>2016-04-07T16:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/6261046#M139705</link>
      <description>&lt;P&gt;oUserParams.AddByExpression("&lt;STRONG&gt;EXPRESSION&lt;/STRONG&gt;", _&lt;BR /&gt; Inventor.UnitsTypeEnum.kUnitlessUnits)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;U CAN USE THIS FOR ADDING BY EXPRESSION&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 07:41:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/6261046#M139705</guid>
      <dc:creator>ravikmb5</dc:creator>
      <dc:date>2016-04-09T07:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/6261048#M139706</link>
      <description>MORBO SEND HIS REGARDS TO YHE HUMAN WYRMIN&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;:))))))</description>
      <pubDate>Sat, 09 Apr 2016 07:44:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/6261048#M139706</guid>
      <dc:creator>Logos_Atum</dc:creator>
      <dc:date>2016-04-09T07:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/7237212#M139707</link>
      <description>&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;what needs to change to work in an Assembly?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 01:29:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/7237212#M139707</guid>
      <dc:creator>cencinaNB2ET</dc:creator>
      <dc:date>2017-07-19T01:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/7237238#M139708</link>
      <description>&lt;P&gt;I got it... sorry I added a version of Brian Ekins Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Dim&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: maroon;"&gt;Doc&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;As&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: maroon;"&gt;AssemblyDocument&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: maroon;"&gt;Doc&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: purple;"&gt;ThisApplication&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;ActiveDocument&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Dim&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: maroon;"&gt;userParams&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;As&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: maroon;"&gt;UserParameters&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Dim&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: maroon;"&gt;param&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;As&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="color: purple;"&gt;Parameter&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: maroon;"&gt;userParams&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Doc&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;ComponentDefinition&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Parameters&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;UserParameters&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: maroon;"&gt;param&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;userParams&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;AddByValue&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: teal;"&gt;"Name_User_Parameter"&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;"SomeValue"&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;UnitsTypeEnum&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;kTextUnits&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: black;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;For&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Each&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: maroon;"&gt;oPara&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;As&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="color: purple;"&gt;Parameter&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;In&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: maroon;"&gt;userParams&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Dim&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: maroon;"&gt;oName&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;As&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;String&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;oPara&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: purple;"&gt;Name&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;If&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: maroon;"&gt;oName&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;" Name_User_Parameter _1"&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Then&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: maroon;"&gt;oPara&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Delete&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;End&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;If&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;Next&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 01:52:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/7237238#M139708</guid>
      <dc:creator>cencinaNB2ET</dc:creator>
      <dc:date>2017-07-19T01:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/8202702#M139709</link>
      <description>&lt;P&gt;i dont think a lot of people understand how much this is a gold mine.&lt;BR /&gt;&lt;BR /&gt;Here is my end result of how i used your code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Dim Doc As AssemblyDocument
Doc = ThisApplication.ActiveDocument
Dim userParams As UserParameters
Dim param As Parameter 
 
userParams = Doc.ComponentDefinition.Parameters.UserParameters
param = userParams.AddByValue("PUMP_MATERIAL", "CAST IRON", UnitsTypeEnum.kTextUnits)
 
For Each oPara As Parameter In userParams
Dim oName As String = oPara.Name
If oName = "PUMP_MATERIAL_1" Then 
oPara.Delete
End If
Next

'set list of values
MultiValue.SetList("PUMP_MATERIAL", "CAST IRON", "STAINLESS")

'Dim booleanParam As Object
standard = InputRadioBox("Select a Material", _
"CAST IRON", "STAINLESS", True, Title := "iLogic") 

If standard = True Then
Parameter("PUMP_MATERIAL") = "CAST IRON"
Else
Parameter("PUMP_MATERIAL") = "STAINLESS"	
End If&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Aug 2018 23:36:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/8202702#M139709</guid>
      <dc:creator>DeerSpotter</dc:creator>
      <dc:date>2018-08-15T23:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/8205426#M139710</link>
      <description>&lt;P&gt;Yes That's Right&lt;/P&gt;&lt;P&gt;You can have more control over your files this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code you posted, I added a few things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; 
&lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oAsmDef&lt;/SPAN&gt; = &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;param&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;userParams&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;UserParameters&lt;/SPAN&gt;
&lt;SPAN&gt;userParams&lt;/SPAN&gt; = &lt;SPAN&gt;oAsmDef&lt;/SPAN&gt;.&lt;SPAN&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN&gt;UserParameters&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;All_New_Parameters&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;





&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oPara&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;userParams&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oPara&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"PUMP_MATERIAL"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; 
&lt;SPAN&gt;GoTo&lt;/SPAN&gt; &lt;SPAN&gt;Skip_Creation&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;


&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Options_Available&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;
&lt;SPAN&gt;Options_Available&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"CAST IRON"&lt;/SPAN&gt;)
&lt;SPAN&gt;Options_Available&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"STAINLESS"&lt;/SPAN&gt;)



&lt;SPAN&gt;oParameter&lt;/SPAN&gt; = &lt;SPAN&gt;userParams&lt;/SPAN&gt;.&lt;SPAN&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN&gt;"PUMP_MATERIAL"&lt;/SPAN&gt;, &lt;SPAN&gt;Options_Available&lt;/SPAN&gt;(0), &lt;SPAN&gt;UnitsTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kTextUnits&lt;/SPAN&gt;)
&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;List&lt;/SPAN&gt;(&lt;SPAN&gt;"PUMP_MATERIAL"&lt;/SPAN&gt;) = &lt;SPAN&gt;Options_Available&lt;/SPAN&gt;
&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetValueOptions&lt;/SPAN&gt;(&lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;DefaultIndex&lt;/SPAN&gt; := 0, &lt;SPAN&gt;NumericCompare&lt;/SPAN&gt; := &lt;SPAN&gt;"="&lt;/SPAN&gt;)
&lt;SPAN&gt;All_New_Parameters&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PUMP_MATERIAL"&lt;/SPAN&gt;)





&lt;SPAN&gt;Skip_Creation&lt;/SPAN&gt; :
 
 

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;standard&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt;
&lt;SPAN&gt;standard&lt;/SPAN&gt; = &lt;SPAN&gt;InputRadioBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Select a Material"&lt;/SPAN&gt;, &lt;SPAN&gt;"CAST IRON"&lt;/SPAN&gt;, &lt;SPAN&gt;"STAINLESS"&lt;/SPAN&gt;, &lt;SPAN&gt;standard&lt;/SPAN&gt;, &lt;SPAN&gt;Title&lt;/SPAN&gt; := &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)


&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;standard&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"PUMP_MATERIAL"&lt;/SPAN&gt;) = &lt;SPAN&gt;"CAST IRON"&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"PUMP_MATERIAL"&lt;/SPAN&gt;) = &lt;SPAN&gt;"STAINLESS"&lt;/SPAN&gt;	
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;







&lt;SPAN&gt;'''&lt;/SPAN&gt;&lt;SPAN&gt;'' Just in Case you have more copies - Delete them&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Copies_To_Delete&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;t&lt;/SPAN&gt; = 0 &lt;SPAN&gt;To&lt;/SPAN&gt; &lt;SPAN&gt;All_New_Parameters&lt;/SPAN&gt;.&lt;SPAN&gt;Count&lt;/SPAN&gt; - 1
&lt;SPAN&gt;Copies_To_Delete&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;All_New_Parameters&lt;/SPAN&gt;(&lt;SPAN&gt;t&lt;/SPAN&gt;) + &lt;SPAN&gt;"_1"&lt;/SPAN&gt;)
&lt;SPAN&gt;Copies_To_Delete&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;All_New_Parameters&lt;/SPAN&gt;(&lt;SPAN&gt;t&lt;/SPAN&gt;) + &lt;SPAN&gt;"_1"&lt;/SPAN&gt; + &lt;SPAN&gt;"_2"&lt;/SPAN&gt;)
&lt;SPAN&gt;Next&lt;/SPAN&gt; &lt;SPAN&gt;t&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oPara&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;userParams&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Copies_To_Delete&lt;/SPAN&gt;.&lt;SPAN&gt;Contains&lt;/SPAN&gt;(&lt;SPAN&gt;oPara&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;oPara&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;





&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;UpdateWhenDone&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;


&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Aug 2018 22:01:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/8205426#M139710</guid>
      <dc:creator>cencinaNB2ET</dc:creator>
      <dc:date>2018-08-16T22:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/8206623#M139711</link>
      <description>&lt;P&gt;Thank you for sharing your knowledge.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is going to change every thing for me for all my ilogic coding.&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 265px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/535803i295E2D51ABA22EF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 375px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/535804i262EA6C7928BD7CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 275px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/535805i6F725E0D998EA171/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 806px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/535806i8D41F4D3770B75A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oDoc As AssemblyDocument = TryCast(ThisDoc.Document, AssemblyDocument)
Dim compDef As AssemblyComponentDefinition = oDoc.ComponentDefinition

If Parameter("PUMP_MATERIAL") = "CAST IRON" Then
For Each oComp In compDef.Occurrences
	For Each oConstraint In oComp.Constraints
		If kPartDocumentObject Then
			If iProperties.Value(oComp.Name, "Project", "Description") = "CASTIRONSTATOR" Then
				oComp.Visible = True 'turn on
			End If
			If iProperties.Value(oComp.Name, "Project", "Description") = "STAINLESSSTATOR" Then
				oComp.Visible = False 'turn off
			End If
			If iProperties.Value(oComp.Name, "Project", "Description")="CASTIRON" Then
				If oConstraint.Name = "VERTICALCI" Then
					oComp.Visible = True
					iProperties.Value("Custom", "Orientation")="VERTICAL"
				End If
				If oConstraint.Name = "RIGHTCI" Then
					oComp.Visible = False
				End If
				If oConstraint.Name = "LEFTCI" Then
					oComp.Visible = False
				End If
			End If
			If iProperties.Value(oComp.Name, "Project", "Description")="STAINLESS" Then
				If oConstraint.Name = "VERTICALSS" Then
					oComp.Visible = False
				End If
				If oConstraint.Name = "RIGHTSS" Then
					oComp.Visible = False
				End If
				If oConstraint.Name = "LEFTSS" Then
					oComp.Visible = False
				End If
			End If
		End If
	Next	
Next
End If

If Parameter("PUMP_MATERIAL") = "STAINLESS" Then
For Each oComp In compDef.Occurrences
	For Each oConstraint In oComp.Constraints
		If kPartDocumentObject Then
			If iProperties.Value(oComp.Name, "Project", "Description") = "STAINLESSSTATOR" Then
				oComp.Visible = True 'turn on
			End If
			If iProperties.Value(oComp.Name, "Project", "Description") = "CASTIRONSTATOR" Then
				oComp.Visible = False 'turn off
			End If
			If iProperties.Value(oComp.Name, "Project", "Description")="STAINLESS" Then
				If oConstraint.Name = "VERTICALSS" Then
					oComp.Visible = True
					iProperties.Value("Custom", "Orientation")="VERTICAL"
				End If
				If oConstraint.Name = "RIGHTSS" Then
					oComp.Visible = False
				End If
				If oConstraint.Name = "LEFTSS" Then
					oComp.Visible = False
				End If
			End If
			If iProperties.Value(oComp.Name, "Project", "Description")="CASTIRON" Then
				If oConstraint.Name = "VERTICALCI" Then
					oComp.Visible = False
				End If
				If oConstraint.Name = "RIGHTCI" Then
					oComp.Visible = False
				End If
				If oConstraint.Name = "LEFTCI" Then
					oComp.Visible = False
				End If
			End If
		End If
	Next	
Next
End If&lt;/PRE&gt;&lt;P&gt;i have it then set for&amp;nbsp;all the buttons the same way (left, right, vertical). This way i control all of my model types through a simple form.&amp;nbsp;&lt;BR /&gt;Hope that i possibly showed you something as well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 13:17:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/8206623#M139711</guid>
      <dc:creator>DeerSpotter</dc:creator>
      <dc:date>2018-08-17T13:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/10484220#M139712</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any ilogic rule available to creating user parameters in flat pattern stage ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Flat pattern parameters.jpg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/943498iA2E91CBDDA380D6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Flat pattern parameters.jpg" alt="Flat pattern parameters.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 07:32:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/10484220#M139712</guid>
      <dc:creator>Biju.Veedu</dc:creator>
      <dc:date>2021-07-21T07:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/10487974#M139713</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8090910"&gt;@Biju.Veedu&lt;/a&gt; .&lt;/P&gt;
&lt;P&gt;While in that Flat Pattern mode/environment, you can still create user parameters manually, and so you can still create them by code the same way too, but when done by code, they just don't shop up right away in the parameters dialog box.&amp;nbsp; Once you go back to the normal folded part mode/environment then you can see that the user parameter you created by code while in Flat Pattern mode was really created.&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 want and have time, I would appreciate your Vote(s) 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;</description>
      <pubDate>Thu, 22 Jul 2021 13:51:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/10487974#M139713</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-07-22T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to create a User Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/10489608#M139714</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;thanks for the info. but I want to stay that parameters at flat stage. Manually typing each one is very painful.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 03:38:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-create-a-user-parameter/m-p/10489608#M139714</guid>
      <dc:creator>Biju.Veedu</dc:creator>
      <dc:date>2021-07-23T03:38:31Z</dc:date>
    </item>
  </channel>
</rss>

