Thursday, 10 July 2014

Quick Inventor Parameters

I have been working on a tank template driven with ilogic and ifeatures and I needed to add a lot of parameters for all my connections.
You can go to Inspect \ Parameter and use Export Parameters to get them out in xml format. You can then edit this with Notepad or any text editor and add your changes. You can add new values to a Multi-Value parameter or add new parameters.

I have copied one set and used paste and then replace to change the parameter name and values.
Then I have saved and imported the file back in Inventor to get them in my template.


A parameter starts with <ParamWithValue> and ends with <\ParamWithValue> just like my example bellow.
<ParamWithValue>
      <name>N10_Size</name>
      <typeCode>String</typeCode>
      <value>2"</value>
      <comment>Connection 10 size</comment>
      <isKey>false</isKey>
      <multiValues>
        <string>0.5"</string>
        <string>0.75"</string>
        <string>1"</string>
        <string>1.25"</string>
        <string>1.5"</string>
        <string>2"</string>
        <string>3"</string>
        <string>4"</string>
        <string>6"</string>
      </multiValues>
    </ParamWithValue>


ADS