Piping > Setting Up Piping Library > Piping Specification Database > Project Data Files > Fitting Category Map File
  
Fitting Category Map File
About Fitting Category Map File
Fitting Category Map File Format
How the Fitting Category Map File Works
To Map an Icon File
Fitting Categories
Creating Fitting Category Icons
Example: Fitting Category Map File
About Fitting Category Map File
The Fitting Category Map file is a Pro/TABLE (ASCII) file that maps each fitting category to a fitting category icon file. Mapping the icon file enables you to select a fitting category button (icon) in the Insert Fitting and Insert Group Fitting dialog boxes and retrieve a list of fittings for the selected category and specification.
Spec-Driven Piping provides seven fitting category icons. You can design as many fitting category icons as you need.
The Fitting Category Map file contains the following data:
Icon Number
Icon Bitmap
Fitting Category
Valve Number
You can assign and reassign fitting categories to icons at any time by mapping each fitting category to an icon bitmap file and assigning an order number.
 
* Spec-Driven Piping groups all unmapped fitting categories in the General category and icon.
Fitting Category Map File Format
The following table describes the Fitting Category Map file format:
Field Name
Field Type
Description
ICON_NUMBER
Integer
Icon number—Orders the fitting category (icon) buttons under Fitting in the Insert Fitting and Insert Group Fitting dialog boxes. The order begins from left to right beginning with the number 1.
If more than 14 icons are displayed, a scroll bar appears.
ICON_BITMAP
Character
Icon bit map file name—Points Spec-Driven Piping to the icon graphics file.
FITTING_CATEGORY
Character
Fitting category—Points Spec-Driven Piping to the Auto-Selection file to retrieve fitting selection names.
 
* If the bitmap file is not of .bif extension, you must specify the appropriate filename extension for that file in the fitting category map file.
You can assign multiple categories using a comma (,) as delimiter.
VALVE_NUMBER
Character
Valve number for the fitting category—Specifies whether a valve number is required for the fittings whose categories are specified under the FITTING_CATEGORY column in the Fitting Category Map file.
YES—Specifies that a valve number is required for the fitting categories specified using the FITTING_CATEGORY field.
NO—Specifies that a valve number is not required for the fitting categories specified using the FITTING_CATEGORY field.
 
* You can define the Fitting Category Map file name by setting the piping_fitt_category_map_file configuration option.
How the Fitting Category Map File Works
After you select a pipeline and an insertion point for fitting insertion (click Insert Fitting or Insert Group Fitting), Spec-Driven Piping retrieves the specification data including the specification name and pipe size from the pipeline. The specification name points Spec-Driven Piping to the Auto-Selection file that you assigned to the specification (in the Specification Directory file) and retrieves the data.
After Spec-Driven Piping populates either the Insert Fitting or Insert Group Fitting dialog boxes with the data, you select a fitting category icon button to select all fitting categories assigned to this icon (in the Fitting Category Map file). Spec-Driven Piping retrieves the list of fitting selection names. This list contains only those fittings that were assigned to those fitting categories in the Auto-Selection file for that specification. You created this Auto-Selection file during Spec-Driven Piping setup. You select a fitting and insert it.
For example, you click Insert Fitting and select the specification 12A pipeline and insertion point. Spec-Driven Piping populates the boxes under Reference. You select the valve category button under Fitting. Spec-Driven Piping retrieves the list of all valves for specification 12A and populates the Selection name box. This list was retrieved from the Auto-Selection file that you created for specification 12A (12a_asfile.ptd). You select a fitting and click Apply to insert it.
To Map an Icon File
1. Locate the piping_fitt_category_map.csv file. The Spec-Driven Piping default path is <Creo Parametric load point>/text/piping_data/sample_project/piping_fitt_category_map.csv.
2. Open the file in an editor such as Microsoft Excel.
3. Type the following data:
Icon Number—Spec-Driven Piping orders the fitting category icons in two rows containing seven icons per row. Ordering is from left to right beginning with the number 1.
Icon Bitmap—Bitmap file name for the fitting category icon.
Fitting Category—Fitting category associated with the icon bitmap file.
 
* If the bitmap file is not of .bif extension, you must specify the appropriate filename extension for that file in the fitting category map file.
4. Save the file.
 
* If you are mapping a new icon bitmap file, store the file in the Spec-Driven Piping resource directory before you map it.
Fitting Categories
Spec-Driven Piping uses fitting categories for data retrieval. You can define Spec-Driven Piping fitting categories as needed. Note that you must add each new fitting category to the Piping Master Catalog (MCAT) Directory file and the Fitting Category Map (Project Data) file.
Spec-Driven Piping provides the following fitting categories:
Fitting Category
Description
VALVE
Valve, such as gate valve, globe valve, and so on
ANGLE_VALVE
Angle valve
RELIEF_VALVE
Relief valve
FLANGE
Flange
GASKET
Gasket
ELBOW
Elbow
ELBOW_LET
Elbow olet
BRANCH
Branch
BRANCH_LET
Branch olet
GENERAL
General fitting
ASSEMBLY
Assembly fitting
SUPPORT
Pipe clip, ubolt, ubolt-channel, pipe supports
Creating Fitting Category Icons
Spec-Driven Piping allows you to create new fitting category icons as needed. You can create new icons with any graphics application that supports GIF or PCX formats. The following Spec-Driven Piping icon conventions must be maintained:
File Type
File Format
File Extension
Icon Size (pixels)
Resource Location (Icon File Library)
Bitmap
GIF, PCX
.gif, .pcx
24 x 24
<Creo installation path>/text/resource
After you create the icon files, store the files in the Spec-Driven Piping resource location and map them to their appropriate fitting categories in the Fitting Category Map file. For more information about mapping fitting category icon files, refer to the Fitting Category Map file topics.
Example: Fitting Category Map File
The following table describes the Spec-Driven Piping default Fitting Category Map file.
Default Path
<Creo load point>/text/piping_data/sample_project/piping_fitt_category_map.csv
ICON_NUMBER
ICON_BITMAP
FITTING_CATEGORY
VALVE_NUMBER
1
fit_valve
VALVE, ANGLE_VALVE, RELIEF_VALVE
YES
2
fit_flange
FLANGE
NO
3
fit_elbow
ELBOW
NO
4
fit_branch
BRANCH, BRANCH_LET, ELBOW_LET
NO
5
fit_red
REDUCER
NO
6
fit_general
GENERAL, GASKET
NO
7
fit_assembly
ASSEMBLY
NO
8
fit_nobreak
SUPPORT
YES