Hi folks,
Forget it: I figured out what was wrong: XMLs are case sensitive and I
typed the data type as "Double" instead of "double'
To whom it may concern, please find attached an example of a udp xml
file: (PTC put this as a GIF picture on their help so that you cannot
simply copy and paste)
<mfgsetupdocument>
<doctype>PRO_NC_TOOL_SPECIAL_PARAM_DEFINITION</doctype>
<mfgtooludparamcollection>
<mfgtooludparam name="TOOL_ORIENTATION" datatype="double">
<description>Orientation of turning tool relative to
machine Z axis.</description>
<defvalue>270</defvalue>
<minvalue>0</minvalue>
<maxvalue>360</maxvalue>
</mfgtooludparam>
<mfgtooludparam name="MY_CUSTOM_PARAMETER" datatype="string">
<description>UDParam for PTCUser CAM</description>
<defvalue>PRONC_IS_AWESOME</defvalue>
<optionvalues>
<option>PRONC_IS_GREAT</option>
<option>PRONC_IS_GOOD</option>
<option>PRONC_SUCKS</option>
<option>PRONC_IS_AWESOME</option>
</optionvalues>
</mfgtooludparam>
</mfgtooludparamcollection>
</mfgsetupdocument>
The result:
A more comprehensive version containing Datatypes as integers, strings,
doubles:
<mfgsetupdocument>
<doctype>PRO_NC_TOOL_SPECIAL_PARAM_DEFINITION</doctype>
<mfgtooludparamcollection>
<mfgtooludparam name="OPEN_AREA_SCAN" datatype="string">
<description>Defines surface maching scan</description>
<defvalue>TYPE_3</defvalue>
<optionvalues>
<option>TYPE_3</option>
<option>FOLLOW_CONTOUR</option>
</optionvalues>
</mfgtooludparam>
<mfgtooludparam name="CLOSED_AREA_SCAN" datatype="string">
<description>Defines surface maching scan</description>
<defvalue>TYPE_SPIRAL</defvalue>
<optionvalues>
<option>TYPE_SPIRAL</option>
<option>CONSTANT_LOAD</option>
<option>FOLLOW_CONTOUR</option>
</optionvalues>
</mfgtooludparam>
<mfgtooludparam name="SPINDLE_SPEED" datatype="integer">
<description>Parameter defines spindle speed</description>
<defvalue>12000</defvalue>
<minvalue>3000</minvalue>
<maxvalue>100000</maxvalue>
</mfgtooludparam>
<mfgtooludparam name="MY_CUSTOM_PARAMETER" datatype="double">
<defvalue>100</defvalue>
<minvalue>10</minvalue>
<maxvalue>10</maxvalue>
</mfgtooludparam>
</mfgtooludparamcollection>
</mfgsetupdocument>
HTH
Daniel Santos