<?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 Explanation or sample of using UnitsTypeEnum.kTextUnits in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/explanation-or-sample-of-using-unitstypeenum-ktextunits/m-p/12182354#M156689</link>
    <description>&lt;P&gt;I feel curious to see any sample of using &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=UnitsTypeEnum" target="_blank" rel="noopener"&gt;UnitsTypeEnum&lt;/A&gt;.kTextUnits.&lt;BR /&gt;I expect it to work by means of &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=UnitsOfMeasure_GetTypeFromString" target="_blank" rel="noopener"&gt;UnitsOfMeasure.GetTypeFromString Method&lt;/A&gt;&amp;nbsp;but I failed to get it working (not sure to have used the correct string).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&lt;BR /&gt;Till now I've found the &lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/get-unittypeenum-from-unitsofmeasure-for-quot-text-quot-and-quot/td-p/6333206" target="_blank" rel="noopener"&gt;only subject related thread&lt;/A&gt;&amp;nbsp;that does not contain any trustworthy or helpful information (yet marked as "solved").&lt;/P&gt;</description>
    <pubDate>Sat, 19 Aug 2023 12:17:59 GMT</pubDate>
    <dc:creator>Maxim-CADman77</dc:creator>
    <dc:date>2023-08-19T12:17:59Z</dc:date>
    <item>
      <title>Explanation or sample of using UnitsTypeEnum.kTextUnits</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/explanation-or-sample-of-using-unitstypeenum-ktextunits/m-p/12182354#M156689</link>
      <description>&lt;P&gt;I feel curious to see any sample of using &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=UnitsTypeEnum" target="_blank" rel="noopener"&gt;UnitsTypeEnum&lt;/A&gt;.kTextUnits.&lt;BR /&gt;I expect it to work by means of &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=UnitsOfMeasure_GetTypeFromString" target="_blank" rel="noopener"&gt;UnitsOfMeasure.GetTypeFromString Method&lt;/A&gt;&amp;nbsp;but I failed to get it working (not sure to have used the correct string).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&lt;BR /&gt;Till now I've found the &lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/get-unittypeenum-from-unitsofmeasure-for-quot-text-quot-and-quot/td-p/6333206" target="_blank" rel="noopener"&gt;only subject related thread&lt;/A&gt;&amp;nbsp;that does not contain any trustworthy or helpful information (yet marked as "solved").&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2023 12:17:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/explanation-or-sample-of-using-unitstypeenum-ktextunits/m-p/12182354#M156689</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2023-08-19T12:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Explanation or sample of using UnitsTypeEnum.kTextUnits</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/explanation-or-sample-of-using-unitstypeenum-ktextunits/m-p/12182798#M156695</link>
      <description>&lt;P&gt;You could use it like this:&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Dim doc As PartDocument = ThisDoc.Document
Dim userParameters = doc.ComponentDefinition.Parameters.UserParameters
userParameters.AddByValue("MyStringParameter", "Parameter text", UnitsTypeEnum.kTextUnits)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a bonus, I wrote a blog article "&lt;A href="http://www.hjalte.nl/46-parameter-document-database-units" target="_blank" rel="noopener"&gt;Parameter, Document and Database Units&lt;/A&gt;". In the article, I use the method "&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=UnitsOfMeasure_GetTypeFromString" target="_blank" rel="noopener nofollow noreferrer"&gt;UnitsOfMeasure.GetTypeFromString&lt;/A&gt;(...)"&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2023 20:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/explanation-or-sample-of-using-unitstypeenum-ktextunits/m-p/12182798#M156695</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2023-08-19T20:52:44Z</dc:date>
    </item>
  </channel>
</rss>

