Part Modeling > UDFs and Groups > Creating a UDF > About Variable Annotation Element Parameters in UDFs
  
About Variable Annotation Element Parameters in UDFs
You can define the parameters of Annotation Elements to be variable in a UDF. First, you define the parameters for the Annotation Element, then, designate the parameters as variable while you are creating or modifying the UDF. When you place the UDF, you can change the parameter values for those parameters marked as variable, or you can keep the current values. You can define any Annotation Element as variable, if the parent Annotation Feature is also included in the UDF.
Surface Finish, Geometric Tolerance, or Driven Dimension Annotation Elements contain parameters that get created automatically. These parameters and the associated Annotation Elements, are listed in the table below:
Annotation Element
Parameter
Additional Information
Surface Finish
PTC_ROUGHNESS_HEIGHT
For only those Annotation Elements with surface finishes that use roughness_height as a variable text
Geometric Tolerance
PTC_GTOL_PRIMARY_TOL
PTC_GTOL_TYPE
PTC_GTOL_MATERIAL_CONDITION
PTC_GTOL_COMPOSITE_TOL
PTC_GTOL_PERUNIT_TOL
PTC_GTOL_UNITLENGTH_TOL
PTC_GTOL_UNITAREA_TOL
PTC_GTOL_PROJECTEDTOLZONE_TOL
PTC_GTOL_UNEQUALLYDISPOSED_TOL
Primary tolerance
Type
Material condition
Composite tolerance
Per-unit tolerance
Unit length
Unit area
Projected tolerance zone
Unequally-disposed tolerance zone
Driven Dimension
PTC_DIM_TOL_VALUE
+ - Symmetric tolerance mode
Driven Dimension
PTC_DIM_LOWER_TOL_VALUE
PTC_DIM_UPPER_TOL_VALUE
+ - or Nominal tolerance mode
If the Annotation feature in your UDF contains a Surface Finish, Geometric Tolerance, or Driven Dimension Annotation Element, and it contains a parameter in the above table, then you can make the parameter variable. To do so, define the Var Parameters element when you are creating the UDF and then select Variable in the Select Parameters dialog box. When you place the UDF, you can keep or change the values for these parameters. If you change the value of a variable item when you place the UDF, the corresponding annotation is automatically selected in the graphics window,
 
* If a dimension has a Limits tolerance mode, you cannot have a variable annotation value.