User Parameters XML Structure



Your Ad Here

The PostParams.xml file consists of the following structure:

 

 

The file has 4 sections:

 

Header Section

This section contains the file version number. Do not change this value.

 

General Section

This section defines:

Note: This file is case sensitive, so make sure that you write the True or False statement as shown here (with a capital T or F).

 

Values Section

This section lists the parameter types (boolean, integer, etc.) and also lists the parameter names. The number of parameters of each type correlates with the value defined in the General Section.

Boolean Parameters - Define:
- The parameter name:
<ParamName>Bool<n></ParamName>
- The default value: <Val>True</Val>

 

Integer Parameters - Define:
- The parameter name:
<ParamName>Int<n></ParamName>
- The default value: <Val>0</Val>

 

Combo Parameters - Define:
- The parameter name:
<ParamName>Combo<n></ParamName>
- The drop-down list parameter names:
<Opt1>Option 1</Opt1>
<Opt2>Option 2</Opt2>
<Opt3>Option 3</Opt3>
- The default value: <Val>0</Val>
is that of the 1st item in the list.

 

Real Parameters - Define:
- The parameter name:
<ParamName>Float<n></ParamName>
- The default value: <Val>0.0</Val>

 

Real Unit Dependent Parameters - Define:
- The parameter name:
<ParamName>UD_Float<n></ParamName>
- The default value: <Val>0.0</Val>

 

 

ParamsOrder Section

This section defines the parameters that are listed in the Basic state. Regardless of the order that the parameters appear in the ParamsOrder Section of the PostParams.xml file, the actual order that the parameters appear in the Basic state, is the same order as they appear in the Advanced state.

To add a parameter to those appearing in the Basic state, add the relevant parameter ID (from the Values Section) in the following format:

- <Index>

  <Ind6>U_PARAM_INT_2</Ind6>

  </Index>

where:

  • <Index>...</Index>: opens and closes the addition statement.

  • <Indn>...</Indn>: indicates the position of the parameter in the list.

  • U_PARAM_<type>_<n>: is the relevant parameter ID from the Values Section.

 

Return to Cimatron Index


Your Ad Here