<?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: Add parameter to drawing file through ilogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/5512663#M54201</link>
    <description>Thanks a lot Luke, that's brilliant!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John</description>
    <pubDate>Thu, 19 Feb 2015 13:17:28 GMT</pubDate>
    <dc:creator>johnster100</dc:creator>
    <dc:date>2015-02-19T13:17:28Z</dc:date>
    <item>
      <title>Add parameter to drawing file through ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/5512437#M54196</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm trying to add some user parameters to a Inventor .dwg file through ilogic. I'd like to be able to add user parameter some of which will be string and some will be numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to find any help on the web or on the forums for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 09:17:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/5512437#M54196</guid>
      <dc:creator>johnster100</dc:creator>
      <dc:date>2015-02-19T09:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add parameter to drawing file through ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/5512606#M54200</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can add a user text parameter like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want it to be a multi-value parameter you'll need to create a new arraylist and add the arraylist itself as the value of the new parameter (replacing "InitialValue" in the example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&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;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawParams&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;UserParameters&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oDrawDoc&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;Dim&lt;/SPAN&gt; &lt;SPAN&gt;TestParam&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;UserParameter&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oDrawParams&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;TestParam&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;InitialValue&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &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;</description>
      <pubDate>Thu, 19 Feb 2015 12:22:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/5512606#M54200</guid>
      <dc:creator>LukeDavenport</dc:creator>
      <dc:date>2015-02-19T12:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add parameter to drawing file through ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/5512663#M54201</link>
      <description>Thanks a lot Luke, that's brilliant!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John</description>
      <pubDate>Thu, 19 Feb 2015 13:17:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/5512663#M54201</guid>
      <dc:creator>johnster100</dc:creator>
      <dc:date>2015-02-19T13:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add parameter to drawing file through ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/6815737#M69446</link>
      <description>&lt;P&gt;Great tip. But how can we delete it or rename it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;-Bertrand&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:48:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/6815737#M69446</guid>
      <dc:creator>masureb</dc:creator>
      <dc:date>2017-01-19T10:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add parameter to drawing file through ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/6815866#M69448</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDoc As Document = ThisApplication.ActiveDocument
Dim oParams As UserParameters = oDoc.Parameters.UserParameters

Dim TestParam As UserParameter = oParams.Item("TestParam")&lt;BR /&gt;TestParam.Expression = "NewText"&lt;BR /&gt;TestParam.Name = "NewName"
TestParam.Delete()&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2017 11:58:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-parameter-to-drawing-file-through-ilogic/m-p/6815866#M69448</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-01-19T11:58:10Z</dc:date>
    </item>
  </channel>
</rss>

