<?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 categorize user created parameters in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6825379#M69557</link>
    <description>&lt;P&gt;Thank you! That does precisely what I wanted. I was a tad confused when I first tried it because it was still giving the error, but I realized it didn't have a catch for if it didn't find the parameter. If it didn't find it the function had a catch to just return nothing but then it tried to add nothing to the category. I may set up a catch later but for now the function works precisely as I wanted, thank you so much.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2017 20:15:08 GMT</pubDate>
    <dc:creator>Thomas.Long</dc:creator>
    <dc:date>2017-01-23T20:15:08Z</dc:date>
    <item>
      <title>How to categorize user created parameters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6824363#M69530</link>
      <description>&lt;P&gt;So I find myself with large assemblies again and I have a plethora of user parameters (some of them are just for the purpose of being able to view the program for watching for errors) and I'm trying to categorize these parameters in order to make it much more manageable. However all there seems to be is the built in filters, but what would really be helpful would be the ability to create subcategories, like folders, to organize them by.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this at all possible?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 14:57:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6824363#M69530</guid>
      <dc:creator>Thomas.Long</dc:creator>
      <dc:date>2017-01-23T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to categorize user created parameters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6824900#M69545</link>
      <description>&lt;P&gt;Hello Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look in the API help for: Custom Parameter Groups, and you will find this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it might help you. (This is API only!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub CreateParametersAndGroup()
    &lt;SPAN style="color: blue;"&gt;' Create a new Part document.&lt;/SPAN&gt;
    Dim oPartDoc As PartDocument
    Set oPartDoc = ThisApplication.Documents.Add(kPartDocumentObject, _
                 ThisApplication.FileManager.GetTemplateFile(kPartDocumentObject))
    
    &lt;SPAN style="color: blue;"&gt;' Set a reference to the compdef.&lt;/SPAN&gt;
    Dim oCompDef As PartComponentDefinition
    Set oCompDef = oPartDoc.ComponentDefinition

    &lt;SPAN style="color: blue;"&gt;' Create a model parameter&lt;/SPAN&gt;
    Dim oModelParam As ModelParameter
    Set oModelParam = oCompDef.Parameters.ModelParameters.AddByValue(2, kCentimeterLengthUnits)
    
    &lt;SPAN style="color: blue;"&gt;' Create a reference parameter&lt;/SPAN&gt;
    Dim oReferenceParam As ReferenceParameter
    Set oReferenceParam = oCompDef.Parameters.ReferenceParameters.AddByValue(4, kCentimeterLengthUnits)
    
    &lt;SPAN style="color: blue;"&gt;' Create a user parameter&lt;/SPAN&gt;
    Dim oUserParam As UserParameter
    Set oUserParam = oCompDef.Parameters.UserParameters.AddByValue("length", 6, kCentimeterLengthUnits)
    
    &lt;SPAN style="color: blue;"&gt;' Create a new custom parameter group&lt;/SPAN&gt;
    Dim oCustomParamGroup As CustomParameterGroup
    Set oCustomParamGroup = oCompDef.Parameters.CustomParameterGroups.Add("Custom Group", "CustomGroup1")
    
    &lt;SPAN style="color: blue;"&gt;' Add the created parameters to this group&lt;/SPAN&gt;
    &lt;SPAN style="color: blue;"&gt;' Note that adding the parameters to the custom group&lt;/SPAN&gt;
    &lt;SPAN style="color: blue;"&gt;' does not remove it from the original group.&lt;/SPAN&gt;
    Call oCustomParamGroup.Add(oModelParam)
    Call oCustomParamGroup.Add(oReferenceParam)
    Call oCustomParamGroup.Add(oUserParam)
End Sub&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jan 2017 17:30:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6824900#M69545</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2017-01-23T17:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to categorize user created parameters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6825166#M69552</link>
      <description>&lt;P&gt;It looks a little over my head but I think I get it. I generally run these as not visual basic and this is running in an assembly. It looks like the rule shown was meant for a part document so I changed a little bit.&lt;BR /&gt;&lt;BR /&gt;I ran it originally as straight vb and it didn't actually create anything that I could see so I tried modifying it a bit. This was a little test I ran to see if I could adapt it to accept pre existing Parameters, which sadly didn't work. Gave me the error "Object of type 'System.UInt32' cannot be converted to type 'Inventor.CommandTypesEnum'."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen it before but that error seems to show up for a multitude of reasons. I did check the help area and while it mentions that you can&amp;nbsp;create special parameter folders it doesn't say how oddly enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub Main()

	Dim oAsmDoc as AssemblyDocument = ThisDoc.Document  
	Dim oAsmCompDef As ComponentDefinition  
	oAsmCompDef = oAsmDoc.ComponentDefinition 
	
    Dim oCustomParamGroup As CustomParameterGroup
    oCustomParamGroup = oAsmCompDef.Parameters.CustomParameterGroups.Add("Custom Group", "Rafters")
    
    oCustomParamGroup.Add("Rafters")
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:05:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6825166#M69552</guid>
      <dc:creator>Thomas.Long</dc:creator>
      <dc:date>2017-01-23T19:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to categorize user created parameters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6825240#M69554</link>
      <description>&lt;P&gt;Apologies, I made a bit of a mistake in that code though I'm still getting the same error. Here is the updated code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub Main()

	Dim oAsmDoc as AssemblyDocument = ThisDoc.Document  
	Dim oAsmCompDef As ComponentDefinition  
	oAsmCompDef = oAsmDoc.ComponentDefinition 
	
    Dim oCustomParamGroup As CustomParameterGroup
    oCustomParamGroup = oAsmCompDef.Parameters.CustomParameterGroups.Add("Custom Group", "Rafters")
    
	Dim oUserParam As UserParameter
    oUserParam = ParaExist("Rafters")
	
    oCustomParamGroup.Add(oUserParam)
End Sub

'The ParaExist function returns the parameter with the name passed to it.
Function ParaExist(sName)
	
	Dim oDoc As AssemblyDocument
	oDoc = ThisDoc.Document
	
	Dim oCompDef As AssemblyComponentDefinition
	oCompDef = oDoc.ComponentDefinition
	
	For i = 1 To oCompDef.Parameters.Count
	
		If oCompDef.Parameters(i).Name = sName
			ParaExist = oCompDef.Parameter(i)
			Exit For
		End If
	Next
End Function&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:29:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6825240#M69554</guid>
      <dc:creator>Thomas.Long</dc:creator>
      <dc:date>2017-01-23T19:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to categorize user created parameters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6825277#M69555</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Main&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;()&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAsmDoc&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;AssemblyDocument&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Document&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAsmCompDef&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0);"&gt;Nothing&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAsmCompDef&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAsmDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oCustomParamGroup&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;CustomParameterGroup&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0);"&gt;Nothing&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Try&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oCustomParamGroup&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAsmCompDef&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Parameters&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;CustomParameterGroups&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Add&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Category name&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Category name&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Catch&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;ex&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Exception&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;it probably already exists&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oCustomParamGroup&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAsmCompDef&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Parameters&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;CustomParameterGroups&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Category name&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Try&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;enter existing parameter name, and copy the line for more parameters&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oExistingParam&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Inventor&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Parameter&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;GetExistingParam&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAsmDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Length&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;add parameter&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oCustomParamGroup&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Add&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oExistingParam&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oExistingParam1&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Inventor&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Parameter&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;GetExistingParam&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAsmDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Width&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;add parameter&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oCustomParamGroup&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Add&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oExistingParam1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;

 &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;End Sub&lt;/SPAN&gt;

 

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Function&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;GetExistingParam&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;ByVal&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAssydoc&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Inventor&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;AssemblyDocument&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oParamName&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;String&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Inventor&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Parameter&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oParam&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Inventor&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Parameter&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0);"&gt;Nothing&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oParam&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oAssydoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;ComponentDefinition&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Parameters&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oParam&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Name&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oParamName&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Then&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oParam&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;If&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Return&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0);"&gt;Nothing&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;End Function&lt;/SPAN&gt;
&lt;/PRE&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;FONT color="#0000ff" face="Consolas" size="2"&gt;put it all in one iLogic rule&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:45:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6825277#M69555</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2017-01-23T19:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to categorize user created parameters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6825379#M69557</link>
      <description>&lt;P&gt;Thank you! That does precisely what I wanted. I was a tad confused when I first tried it because it was still giving the error, but I realized it didn't have a catch for if it didn't find the parameter. If it didn't find it the function had a catch to just return nothing but then it tried to add nothing to the category. I may set up a catch later but for now the function works precisely as I wanted, thank you so much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 20:15:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-categorize-user-created-parameters/m-p/6825379#M69557</guid>
      <dc:creator>Thomas.Long</dc:creator>
      <dc:date>2017-01-23T20:15:08Z</dc:date>
    </item>
  </channel>
</rss>

