<?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: Convert Numeric parameter to Text parameter in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/8009874#M88914</link>
    <description>&lt;P&gt;Sorry for the delay in getting back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give a little more context, the parameter is currently in a Pipe template file and represents the Schedule of the pipe. Up till now we've only really used Sch. 10, 40, and 80, but recently started using some "STD" schedule pipe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These "smart" template files use iLogic to look up the proper pipe dimensions in an Excel file. The iLogic looks at the "Schedule" and "Nominal size" parameters, and cross-references that with the Excel table to determine the proper OD and thickness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, the iLogic also checks the Excel spreadsheet for the available Schedule sizes and uses that to populate a multivalue list for the Schedule parameter. Hence the problem with the Schedule parameter being numeric. If I add some "STD" schedule rows to the Excel table, the iLogic will try to add those to the Schedule multivalue parameter list, which will result in an error because "STD" is not numeric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing my template so that the Schedule parameter is a text parameter isn't an issue. I can just delete and re-create it. The problem is my dozens to hundreds of existing files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the best solution for them is to have the iLogic rule check if the "Schedule" parameter is numeric or text-type, and if it's numeric, delete it and re-create it as a Text parameter. Then proceed to populate the multi-value list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping to avoid that because deleting and re-creating parameters breaks any existing references to that parameter. But I suppose text parameters can't be referenced anyway...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess having my iLogic rule delete and re-create hopefully shouldn't be an issue...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that my best option?&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 19:57:45 GMT</pubDate>
    <dc:creator>DRoam</dc:creator>
    <dc:date>2018-05-17T19:57:45Z</dc:date>
    <item>
      <title>Convert Numeric parameter to Text parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/7995559#M88911</link>
      <description>&lt;P&gt;Was surprised I couldn't find this somewhere. Is it possible to use iLogic to convert a numeric parameter to a text parameter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have dozens and dozens of "smart parts" in our designs with a unitless parameter and we recently came upon a need to enter non-numeric values. We control these smart parts with iLogic so if I can add a snippet to convert the parameters to Text then all will be fine. If not then we'd have to delete and recreate which will lose all references to the parameter in drawings, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 13:47:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/7995559#M88911</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2018-05-11T13:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Numeric parameter to Text parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/7997795#M88912</link>
      <description>&lt;P&gt;It's not supported to be able to&amp;nbsp;convert an existing numeric parameter to a text parameter.&amp;nbsp; However, a relatively easy workaround&amp;nbsp;is to delete the&amp;nbsp;numeric parameter and create a new text parameter using the same name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some functionality is only supported by numeric parameters, so if you're taking advantage of that functionality, you'll lose it.&amp;nbsp; For example, only numeric parameters can be exported as iProperties.&amp;nbsp; Also, it's only numeric parameters that can reference other parameters in an equation.&amp;nbsp; In fact, you won't be able to delete an existing parameter if it's being referenced in the equation of another parameter.&lt;/P&gt;</description>
      <pubDate>Sat, 12 May 2018 20:10:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/7997795#M88912</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2018-05-12T20:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Numeric parameter to Text parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/7998173#M88913</link>
      <description>Please explain what you want to achieve. What is your goal with the text parameter? Maybe there are other, easier solutions...</description>
      <pubDate>Sun, 13 May 2018 09:16:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/7998173#M88913</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-05-13T09:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Numeric parameter to Text parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/8009874#M88914</link>
      <description>&lt;P&gt;Sorry for the delay in getting back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give a little more context, the parameter is currently in a Pipe template file and represents the Schedule of the pipe. Up till now we've only really used Sch. 10, 40, and 80, but recently started using some "STD" schedule pipe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These "smart" template files use iLogic to look up the proper pipe dimensions in an Excel file. The iLogic looks at the "Schedule" and "Nominal size" parameters, and cross-references that with the Excel table to determine the proper OD and thickness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, the iLogic also checks the Excel spreadsheet for the available Schedule sizes and uses that to populate a multivalue list for the Schedule parameter. Hence the problem with the Schedule parameter being numeric. If I add some "STD" schedule rows to the Excel table, the iLogic will try to add those to the Schedule multivalue parameter list, which will result in an error because "STD" is not numeric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing my template so that the Schedule parameter is a text parameter isn't an issue. I can just delete and re-create it. The problem is my dozens to hundreds of existing files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the best solution for them is to have the iLogic rule check if the "Schedule" parameter is numeric or text-type, and if it's numeric, delete it and re-create it as a Text parameter. Then proceed to populate the multi-value list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping to avoid that because deleting and re-creating parameters breaks any existing references to that parameter. But I suppose text parameters can't be referenced anyway...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess having my iLogic rule delete and re-create hopefully shouldn't be an issue...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that my best option?&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 19:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/8009874#M88914</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2018-05-17T19:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Numeric parameter to Text parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/8009925#M88915</link>
      <description>&lt;OL&gt;&lt;LI&gt;you could also replace the Excel file that is filled in like you said and update this. I have a code for this.&lt;BR /&gt;if you do a loop for all parts and replace the excel file than this should be solved easier.&lt;/LI&gt;&lt;LI&gt;otherwise can't you export a complete new parameter with the Xls file and base your ilogic code on that. so do a combination of two parameters to a new parameter like par1 = SH par2 = 40 and par3 = par1 &amp;amp; par2 with result SH4&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 17 May 2018 20:22:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/convert-numeric-parameter-to-text-parameter/m-p/8009925#M88915</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-05-17T20:22:22Z</dc:date>
    </item>
  </channel>
</rss>

