About Hatch Pattern Scale Configuration file
You can build a library of patterns that can be used to list hatch patterns when working with cross-hatch patterns.
In the hatch_pattern_scale.cfg file you can define the following specifications for a hatch pattern:
Type of hatch pattern. For example, ANSI/ISO/Custom name.
Name of the hatch pattern. For example, ANSI31/ISO Glass and so on.
Scale of the hatch pattern for its thumbnail in the hatch gallery.
Fixed scale of hatching for the hatch pattern. For a hatching pattern in drawing view and 3D model view, you can specify a fixed value that is not dependent on the size of the hatched outline. To enable the fixed scale, set the configuration option hatch_pattern_scale_in_drw_view to fixed and add PTC_HATCH_FIXED_SCALE <value> on a new line in the hatch_pattern_scale.cfg file.
Define color of the hatching lines for a hatch pattern. The format of the color value is RGB. To specify the color values add PTC_HATCH_COLOR_RGB <R_value> <G_value> <B_value>on a new line in the hatch_pattern_scale.cfg file. When switching between hatches in a cross-section, the color from the hatch_pattern_scale.cfg file is applied to the hatches, overriding the existing color.
Configuration file format:
ANSI,ANSI34
2.000000
PTC_HATCH_FIXED_SCALE 5.0000000
PTC_HATCH_COLOR_RGB 230.0 46.0 46.0
In this example, the value 2.0 is related to the scale of the thumbnail in the hatch gallery and the value 5.0 is the fixed scale value that will be applied in the units of the drawing or model.
The following image illustrates the changes to the ANSI34 hatch pattern. The same can be applied to user-defined patterns:
You can access the configuration file in the configuration directory by browsing to <creo loadpoint>\Common Files\text\crosshatch.
The configuration option hatch_pattern_cfg_file specifies the hatch pattern configuration (*.cfg) file to be loaded when Creo Parametric is started.
Was this helpful?