Creo Advanced Framework > Configuring Creo Advanced Framework > To Set Start Part Information
  
To Set Start Part Information
Use the start_mdl.cfg file located at <creo_loadpoint>\Common Files\afx\configuration\, to customize start part properties of the created models. The standard Creo Advanced Framework installation includes a _start_mdl.cfg template file. If you rename _start_mdl.cfg to start_mdl.cfg, then start part information defined in the template file is applied to all new parts .
The following options are available in this configuration file:
Rename standard features
FEATURE_NAME <original feature name> <new feature name>
Placeholder
Description
original feature name
Original name of the feature to rename.
new feature name
New name of the feature.
Create parameter
CREATE_PARAMETER <parameter name> <parameter type> <default value> DESIGNATE
Placeholder
Description
parameter name
Name of the parameter to create.
parameter type
Parameter data type. Possible values are as follows:
INTEGER
DOUBLE
STRING
BOOLEAN
default value
Default values can be an integer, a two-digit number, or a string depending on the <parameter type>.
Use GETENV:<environment variable> to assign a value from an environment variable as default value.
DESIGNATE
The DESIGNATE string is optional. If you use DESIGNATE, the parameter is designated to Windchill.
Create default layer
CREATE_LAYER <layer name>, <layer status> <layer type>
Placeholder
Description
layer name
Name of the layer to create.
layer status
Layer display status. Possible values are as follows:
DISPLAY
BLANK
NORMAL
layer type
Layer type is optional. You can designate the layer as the default layer for a specific element type.
GEOM_FEAT
NOGEOM_FEAT
COSM_SKETCH
AXIS
SURFACE
DATUM
POINT
CURVE
CSYS
FEATURE
HOLE_FEAT
ROUND_FEAT
CHAMFER_FEAT
SLOT_FEAT
CUT_FEAT
PROTRUSION_FEAT
RIB_FEAT
DRAFT_FEAT
SHELL_FEAT
CORN_CHAMF_FEAT
ASSY_CUT_FEAT
TRIM_LINE_FEAT
COSM_ROUND_FEAT
COPY_GEOM_FEAT
WELD
CURVE_ENT
NOTE
GTOL
QUILT
DATUM_POINT
DATUM_PLANE
THREAD_FEAT
SOLID_GEOM
EXT_GCPY_FEAT
Rename existing layers
RENAME_LAYER <old layer name> <new layer name>
Placeholder
Description
old layer name
Old name of the layer to rename.
new layer name
New name of the layer.
Delete existing layers
DELETE_LAYER <layer name>
Placeholder
Description
layer name
Name of the layer to delete.
ALL
Delete all layers.
Set a rule-layer–template model
RULE_LAYER_TEMPLATE <template name>
Placeholder
Description
template name
The name of a layer template. All rule–based layers from that template are copied to any new AFX parts. The path for the file is <creo_loadpoint>\Common Files\afx\configuration\. The name of the template for parts and assemblies should be the same. The layer states and combined states of the template are also copied.
Create a rule layer parameter on features (Parametername BUW_LAYER_INFO)
CREATE_RULE_LAYER_PARAM <YES/NO>
Placeholder
Description
YES
Create the feature parameter BUW_LAYER_INFO with the name of the layer on which the feature is stored. This enables you to create a set of layer rules to collect all features that are specific for AFX on a certain layer.
NO
Do not create a rule layer parameter.
Set the model accuracy
SET_ACCURACY <type> <value>
Placeholder
Description
type
Can be RELATIVE or ABSOLUTE.
value
Accuracy value.
Set a default density
SET_DEFAULT_DENSITY <value>
Placeholder
Description
value
Density value if no material is set.
Set a default tolerance type for dimensions
SET_DEFAULT_TOL_TYPE <value>
Placeholder
Description
value
Can be DEFAULT, PLUS_MINUS, LIMITS or PLUS_MINUS_SYM.
Rename views
RENAME_VIEW <old view name> <new view name>
Placeholder
Description
old view name
Name of the old view that his available in models. Original view names are: +Xy, +Xz, +Yz, -Xy, -Xz, -Yz.
new view name
New name of the view.
Set a default material
SET_DEFAULT_MATERIAL <value>
Placeholder
Description
value
The material name.
Delete views
DELETE_VIEW <view name>
Placeholder
Description
view name
Name of view to delete.
Create views
CREATE_VIEW <view name>, trans_matrix[0][0] trans_matrix[0][1] trans_matrix[0][2], trans_matrix[1][0] trans_matrix[1][1] trans_matrix[1][2] , trans_matrix[2][0] trans_matrix[2][1] trans_matrix[2][2]
Placeholder
Description
view name
Name of the view to create.
trans_matrix[i][j]
The numbers the transformation formula uses from the default model coordinate system to map to the coordinates of the view being created.
To access the numbers for the transformation formula:
1. Create an empty part or assembly.
2. Create a coordinate system to represent the default coordinate system.
3. Create additional orientation features.
4. Use the Creo ParametricView Manager to orient the model.
5. Create a coordinate system using the default coordinate system as a reference and the Set Z Normal To Screen option.
6. Click Analysis > Measure > Transform to make this coordinate system the default and to access the transformation formula. Enter these values for trans_matrix[i][j] in the CREATE_VIEW option, as described above.
!===== LAYER CONFIGURATION =====
CREATE_RULE_LAYER_PARAM YES
DELETE_LAYER ALL
RULE_LAYER_TEMPLATE afx_start_model

!===== RENAME STANDARD FEATURES =====
FEATURE_NAME XY START_XY
FEATURE_NAME XZ START_XZ
FEATURE_NAME YZ START_YZ
FEATURE_NAME CS0 START_CSYS
FEATURE_NAME A_XY A_START_XY
FEATURE_NAME A_XZ A_START_XZ
FEATURE_NAME A_YZ A_START_YZ
FEATURE_NAME ACS0 A_START_CSYS

!===== CREATE START UDF =====
START_PART_UDF_NAME start_udf

!===== MANAGE VIEWS =====
RENAME_VIEW +XY FRONT
RENAME_VIEW -XY BACK
RENAME_VIEW -XZ BOTTOM
RENAME_VIEW -YZ LEFT
RENAME_VIEW +YZ RIGHT
RENAME_VIEW +XZ TOP

CREATE_VIEW ISO
0.707107 -0.408103 0.577453
-6.52932e-008 0.816642 0.577145
-0.707107 -0.408103 0.577453

!===== ACCURACY SETTINGS ====
SET_ACCURACY ABSOLUT 0.01

!===== SET A DEFAULT DENSITY IF NO MATERIAL ====
SET_DEFAULT_DENSITY 2.79

!===== SET A DEFAULT MATERIAL ====
SET_DEFAULT_MATERIAL alu

!===== SET THE DEFAULT TOLERANCE FOR DIMENSIONS ====
SET_DEFAULT_TOL_TYPE PLUS_MINUS

!===== CREATE PARAMETERS ====
CREATE_PARAMETER COMPANY STRING B&W Software DESIGNATE
CREATE_PARAMETER USERNAME STRING GETENV:USERNAME DESIGNATE
CREATE_PARAMETER INT_PARAM INTEGER 1337 DESIGNAGE
CREATE_PARAMETER DBL_PARAM DOUBLE 1.337