Fundamentals > Creo Parametric User Interface > The Tools Tab > Getting Information > Getting Part and Assembly Information > About the User Defined BOM Output Format File
  
About the User Defined BOM Output Format File
Using Report Sections
A BOM report contains two sections, a breakdown of the components in the assembly or subassembly and a summary of the parts. When you create a user defined format for the BOM report, you define a custom format for the sections you choose to include in the report.
In each section of the report The .titles, and .row commands set the column titles and row content. Use the following commands to define the sections of the report.
.breakdown—Sets the beginning of breakdown section.
.summary—Sets the beginning of the summary section.
Displaying Parameters
In the column titles or the rows you can specify system parameters or user defined parameters. There are 3 system parameters: name, type, and quantity. A system parameter is preceded by %$. For example, %$type. A user defined parameter is preceded by %. For example, %price. Text that is not part of a parameter name appears in the report the way it appears in the file. When you type $%price the report will return the value of the attribute price with a $ before it, for example, $25.
Using Format Specifiers
You can use optional format specifiers to indicate the type of data and width of the parameter field. Format specifiers are inclosed in square brackets [ ] and aid in correct column alignment. The following list contains examples of format specifiers.
[4s]—Specifies a parameter with a string (text) variable and a field width of 4.
[3d]—Specifies a parameter with an integer variable and a field width of 3.
[6.3f]—Specifies a parameter with a floating point variable. The total field width is 6 with 3 places after the decimal point.
[8.8s]—Specifies a parameter with a string variable and a width of 8. Longer strings will be truncated after 8 characters. Use this format to make sure all table cells are the same size.
[-6]—Specifies a parameter with a string variable that is left justified. The minus sign is for left justification.
Using a letter is optional. When you omit the letter, the system determines the type of format; string, integer, or floating point.
Calculating the Total Number of Items
You can calculate the total number of a specific user defined parameter or of the system parameter quantity. To calculate the total of a user defined parameter use the format [%[$total(user defined parameter)]]. When this format is in a .row command, it calculates the total for that row only. To calculate the total of the system parameter quantity use the format [%[$total (quantity)]].