Piping > Drawings > Installation Drawing Generation > Attribute and Parameter Specification File
  
Attribute and Parameter Specification File
The Attribute and Parameter Specification file lists the attributes and parameters valid for the user-definable objects. It also defines the format, style, and layer for inserting the values of these attributes and parameters as notes in the drawing.
The default Attribute and Parameter Specification file name is aec_dwg_anno_attrparam_spec.ptd. The default file is available at <creo_load_point>/text/aec_data. Creo Parametric applications read this file while launching the Annotate Attr/Params dialog box.
Use the Pro/TABLE tool to view and edit this file outside Creo Parametric. Set the following option in your config.pro file to use a customized Attribute and Parameter Specification file:
aec_dwg_anno_attrpar_spec_file spec.ptd
where spec.ptd is the customized Attribute and Parameter Specification file.
Any change in the Attribute and Parameter Specification file does not trigger an automatic regeneration of the drawing.
This file has a tabular format and consists of the following columns:
USER_OBJECT_TYPE
ATTRPARAM_NAME
FACTOR
FORMAT
STYLE
LAYER
User Object Type
The first column specifies the types of user-definable objects to be annotated in the drawing. All the types of objects specified in this column are displayed in the options list for the Select Object Type option in the Annotate Attr/Params dialog box.
Attribute and Parameter Names
The second column specifies the attribute and parameters valid for the corresponding object type specified in the first column. You can specify a number of attributes and parameters for a single object type. Specify each attribute and parameter in a separate row in Pro/TABLE. You can repeat the parameters or attributes for a set of valid object types. All the attributes and parameters valid for the selected type of object are displayed in the options list for the Select Attributes option in the Annotate Attr/Params dialog box.
The attributes and parameters valid for the corresponding object types are specified in the next table.
Object Name
Attribute Name
PIPELINE
LABEL
SPOOL
LABEL
Fillet_Weld, Butt_Weld
WELD_CODE
Fillet_Weld, Butt_Weld
WELD_CONNECT_TYPE
Factor
The third column specifies the multiplication factor. This is valid only for the attributes or parameters with double or integer types. The attribute and parameter value is multiplied by the given factor before being displayed in the specified format on the drawing. By default, the multiplication factor is 1. It is useful for the conversion of units, that is, to display units in millimeters when the model unit is in meters.
Format
The fourth column specifies the format for the notes for displaying the attribute and the parameter values in the drawing. The format string consists of two parts, ordinary characters and the conversion specification.
Ordinary characters are displayed in the drawing notes as specified.
The conversion specification is replaced with the actual value of the attribute and the parameter before being displayed in the drawing notes.
A minus sign (-) to specify the left alignment of the value in its field.
A plus sign (+) to specify that the value is displayed with a sign.
A space ( ) to prefix the value with a space in the absence of any sign.
Zero (0) for numeric conversion. It assigns leading zeroes as padding for the field width.
A hash mark (#) to specify an alternative output form. Alternative form changes the behavior of conversion characters. For example, the following table gives different meanings of %G and %#G for the same value.
Value
Conversion Factor = %G
Conversion Factor = %#G
0.00000000123
1.23E-09
1.23000E-09
1.0
1
1.00000
A number to specify the minimum field width. The converted value is displayed in the field with the specified minimum width, or if required, in a field wider than the specified minimum width. If the converted value has fewer characters than the specified minimum field width, trailing or leading spaces are added to the field. If you have specified the zero flag, trailing or leading zeros are used.
A period to separate the field width from the precision number.
A number to specify the precision. For example:
The number of characters to be displayed from a string.
The number of digits to be displayed after the decimal point of a double value.
The minimum number of digits to be displayed for an integer.
The conversion characters for strings, integers, and double values are shown in the next table.
Character
Value Type
Display Format
d, i
Integer
Decimal number.
s
String
Displays characters from the string till the end or the number of characters given by precision.
f
Double
[-]m.dddddd, where the number of ds depends on the specified precision. By default, six digits are specified after the decimal point.
e
Double
[-]m.dddddde+xx or [-]m. dddddde-xx, where the number of ds depends on the specified precision. By default, six digits are specified after the decimal point.
E
Double
[-]m.ddddddE+xx or [-]m.ddddddE-xx, where the number of ds depends on the specified precision. By default, six digits are specified after the decimal point.
g, G
Double
Use %e or %E if the exponent is less than -4 or greater than or equal to precision. Otherwise, the system uses %f. Trailing decimal point and trailing zeros are not displayed.
%
No value
Displays %.
Style
The fifth column specifies the default style of the note to be used for the corresponding parameter or attribute. The specified style must be available in the current drawing.
Layer
The sixth column specifies the default layer to be used for displaying the note created for the corresponding parameter or attribute. If the specified layer is not available, a new layer is created.