| • | PRO_MFGTYPE_MACH_ASSEM |
| • | PRO_MFGTYPE_SHEET_METAL |
| • | PRO_MFGTYPE_MOLD |
| • | PRO_MFGTYPE_CAST |
| • | PRO_MFGTYPE_CMM |

| • | PRO_ASM_COMP_TYPE_NONE—A regular component (no special manufacturing role) |
| • | PRO_ASM_COMP_TYPE_WORKPIECE—A workpiece |
| • | PRO_ASM_COMP_TYPE_REF_MODEL—A reference model |
| • | PRO_ASM_COMP_TYPE_FIXTURE—A fixture |
| • | PRO_ASM_COMP_TYPE_MOLD_BASE—A mold base |
| • | PRO_ASM_COMP_TYPE_MOLD_COMP—A mold component |
| • | PRO_ASM_COMP_TYPE_MOLD_ASSEM—A mold assembly |
| • | PRO_ASM_COMP_TYPE_GEN_ASSEM—A general assembly |
| • | PRO_ASM_COMP_TYPE_CAST_ASSEM—A cast assembly |
| • | PRO_ASM_COMP_TYPE_DIE_BLOCK—A die block |
| • | PRO_ASM_COMP_TYPE_DIE_COMP—A die component |
| • | PRO_ASM_COMP_TYPE_SAND_CORE—A sand core |
| • | PRO_ASM_COMP_TYPE_CAST_RESULT—A cast result |
| |
| |
| |
| |
| |
| |
| • | PRO_TOOL_DRILL |
| • | PRO_TOOL_TURN |
| • | PRO_TOOL_SAW |
| • | PRO_TOOL_MILL |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
status = ProElementAlloc (PRO_E_PARAM, &element);|
Parameter
|
Turn
|
Turn Groove
|
|---|---|---|
|
NOSE_RADIUS
|
•
|
•
|
|
TOOL_WIDTH
|
•
|
•
|
|
SIDE_WIDTH
|
•
|
|
|
LENGTH
|
•
|
•
|
|
SIDE_ANGLE
|
•
|
•
|
|
END_ANGLE
|
•
|
•
|
|
GAUGE_X_LENGTH
|
•
|
•
|
|
GAUGE_Z_LENGTH
|
•
|
•
|
|
TOOL_MATERIAL
|
•
|
•
|
|
HOLDER_TYPE
|
•
|
|
|
Parameter
|
Mill
|
Side Mill
|
Thread Mill
|
Groove
|
|---|---|---|---|---|
|
CUTTER_DIAM
|
•
|
•
|
•
|
•
|
|
CORNER_RADIUS
|
•
|
•
|
|
•
|
|
CUTTER_WIDTH
|
|
•
|
|
|
|
SHANK_DIAM
|
|
•
|
|
|
|
LENGTH
|
•
|
•
|
•
|
•
|
|
INSERT_LENGTH
|
|
|
•
|
|
|
END_OFFSET
|
|
|
•
|
|
|
SIDE_ANGLE
|
•
|
•
|
|
|
|
GAUGE_X_LENGTH
|
•
|
•
|
|
|
|
GAUGE_Z_LENGTH
|
•
|
•
|
|
•
|
|
NUM_OF_TEETH
|
•
|
•
|
•
|
|
|
TOOL_MATERIAL
|
•
|
•
|
|
|
|
Parameter
|
Auxiliary
|
Contouring
|
|---|---|---|
|
CUTTER_DIAM
|
•
|
•
|
|
LENGTH
|
•
|
•
|
|
Parameter
|
Drill
|
Csink
|
Tap
|
Ream
|
Center Drill
|
Bore
|
BackSpot
|
|---|---|---|---|---|---|---|---|
|
CUTTER_DIAM
|
•
|
•
|
•
|
•
|
•
|
•
|
•
|
|
POINT_DIAMETER
|
|
•
|
•
|
|
|
|
|
|
DRILL_DIAMETER
|
|
|
|
|
•
|
|
|
|
BODY_DIAMETER
|
|
|
|
|
|
|
•
|
|
LENGTH
|
•
|
•
|
•
|
•
|
•
|
•
|
•
|
|
CHAMFER_LENGTH
|
|
|
•
|
|
|
|
|
|
DRILL_LENGTH
|
|
|
|
|
•
|
|
|
|
INSERT_LENGTH
|
|
|
|
|
|
|
•
|
|
TIP_OFFSET
|
|
•
|
|
|
|
|
|
|
GAUGE_OFFSET
|
|
•
|
|
|
|
|
|
|
CUTTING_OFFSET
|
|
|
|
|
|
|
•
|
|
SIDE_ANGLE
|
|
|
|
•
|
|
|
|
|
POINT_ANGLE
|
•
|
•
|
|
|
•
|
|
|
|
CSINK_ANGLE
|
|
|
|
|
•
|
|
•
|
|
GAUGE_X_LENGTH
|
•
|
•
|
•
|
•
|
•
|
•
|
•
|
|
GAUGE_Z_LENGTH
|
•
|
•
|
•
|
•
|
•
|
•
|
•
|
|
TOOL_MATERIAL
|
•
|
•
|
•
|
•
|
•
|
•
|
•
|
|
Element
|
Description
|
Value
|
|---|---|---|
|
Name
|
The name used to identify the tool
|
R
|
|
Type
|
Mill, drill, and so on
|
R
|
|
Parameters (for parameter-driven tools only)
|
Tool parameters
|
R
|
|
Model (for solid tools only)
|
Model that represents the tool
|
R
|
| • | tool_handle—Specify the handle to the tool to be created or redefined. |
| • | input_file—Specify the full path and name of the input file that contains all the parameter information about the tool to be created or redefined. |
| • | tool_handle—Specify the handle to the tool whose information is to be saved. |
| • | output_file—Specify the full path and name of the output file where the tool information is to be saved. |

sample_parameter = protk_user_defined_function (list of arguments)| 1. | Within the Creo Parametric TOOLKIT application, register an appropriate external function using ProRelationFunctionRegister(). |
| 2. | In the user interface for the step table, define the relation calling the externally registered functions. |
| 1. | Create the feature element tree. |
| 2. | Add nodes or subtrees to the feature tree. |
| 3. | Create a selection that represents the model in which to construct the feature. |
| 4. | Create the feature. |
| • | The time required to perform the setup |
| • | The identifiers of the fixturing components |
| • | Associated comments |
| 1. | Allocate space for the tree using the following call: ProElementAlloc (PRO_E_FEATURE_TREE); |
| 2. | Define the feature type element (PRO_E_FEATURE_TYPE) to be an integer of value PRO_FEAT_FIXSETUP. |
| 3. | Define the name (PRO_E_FEAT_NAME) to be a wide string. |
| 4. | Optionally, add the setup time (PRO_E_SETUP_TIME) as a double. |
| 5. | Optionally, add the component identifiers of the fixturing models (PRO_E_FIXT_COMPONENTS). Note
Because this is a multivalue element, you can add multiple (integer) values to the PRO_E_FIXT_COMPONENT element.
|
|
Element
|
Description
|
Value
|
|---|---|---|
|
Cell type
|
Mill, mill/turn, and so on.
|
R
|
|
Number of axes
|
The number of axes.
|
R
|
|
Table direction
|
Horizontal or vertical (for turn or mill/turn)
|
R
|
|
Machine number heads
|
1 or 2 (for turn or mill/turn)
|
R
|
|
Name
|
The workcell name.
|
O
|
|
Tooling
|
Add tools to the workcell.
|
O
|
|
Tool table
|
Manipulate the tools in a tool table.
|
O
|
|
Parameters
|
The workcell parameters.
|
O
|

POSITION TOOL_ID REGISTER COMMENTS
1 drill_M8 8MM Drill
2 drill_M10 10MM Drill| • | To define the first cell so the position of the tool is index 1, set the value of the PRO_E_MFG_TABLE_CELL_TYPE to PRO_TOOL_TABLE_INDEX, and set the value of PRO_E_MFG_TABLE_CELL_VALUE to the integer value 1. |
| • | Similarly, define the tool identifier to be a drill_M8. Set the cell type element to PRO_TOOL_TABLE_TOOL_ID, and set the value to a wide string of value drill_M8. Because the register column is empty, it can be ignored. To set the comments element, set the type to PRO_TOOL_TABLE_COMMENTS, and set the value to a wide string of value “8MM Drill.” |
|
Element
|
Description
|
Value
|
|---|---|---|
|
Workcell
|
The identifier of the workcell feature in which to perform the operation
|
R
|
|
Machine coordinate system
|
The identifier of the machining coordinate system
|
R
|
|
Name
|
The operation name
|
O
|
|
Comments
|
The operation comments
|
O
|
|
From point
|
The datum point from which to start the operation
|
O
|
|
Home point
|
The datum point on which to end the operation
|
O
|
|
Parameters
|
The operation parameters
|
O
|

| • | PRO_NCSEQ_PROF_SUR_MILL—Profile milling, feature type PRO_FEAT_MILL |
| • | PRO_NCSEQ_VOL_MILL—Volume milling, feature type PRO_FEAT_MILL |
| • | PRO_NCSEQ_CONV_SURF_MILL—Conventional surface, feature type PRO_FEAT_MILL |
| • | PRO_NCSEQ_FACE_MILL—Face milling, feature type PRO_FEAT_MILL |
| • | PRO_NCSEQ_PREV_TOOL_MILL—Local milling using previous tool, feature type PRO_FEAT_MILL |
| • | PRO_NCSEQ_HOLEMAKING—Holemaking, type PRO_FEAT_DRILL |
|
Element
|
Description
|
Value
|
|---|---|---|
|
Feature type
|
The feature type
|
R
|
|
Type
|
The sequence type
|
R
|
|
Operation
|
Operation to which to add the NC sequence
|
R
|
|
Retraction plane
|
The retraction plane
|
R
|
|
Tool
|
The tool
|
R
|
|
Csys
|
The manufacturing coordinate system
|
R
|
|
Parameters
|
The manufacturing parameters
|
R
|
|
Name
|
The name of the NC sequence
|
O
|
|
Number of axes
|
The number of axes
|
O
|
|
Machine head
|
The machine head
|
O
|
|
Fixture
|
The fixture
|
O
|
|
Entities to be machined
|
||
|
Surface
|
The surface
|
R
|
|
Holes or volume
|
The holes or volume
|
R
|
|
Start path
|
The start path
|
R
|
|
End path
|
The end path
|
R
|
| • | CUT_FEED |
| • | TOLERANCE |
| • | STEP_OVER |
| • | SPINDLE_SPEED |
| • | CLEAR_DIST |
| • | CUT_FEED |
| • | STEP_DEPTH |
| • | TOLERANCE |
| • | STEP_OVER |
| • | SPINDLE_SPEED |
| • | CLEAR_DIST |
| • | CUT_FEED |
| • | TOLERANCE |
| • | SPINDLE_SPEED |
| • | CLEAR_DIST |
| • | ProNcseqElemHolesetAdd() |
| • | ProNcseqElemHolesetDepthTypeSet() |
| • | ProNcseqElemHolesetDepthBySet() |
| • | ProNcseqElemHolesetDepthSet() |
| • | ProNcseqElemHolesetStartSet() |
| • | ProNcseqElemHolesetEndSet() |
| • | ProNcseqElemHolesetDirectionSet() |
| • | ProNcseqElemHolesetAxisAdd() |
| • | ProNcseqElemHolesetDrillpartAdd() |
| • | ProNcseqElemHolesetCsinkdiamSet() |

| |
| |
| |
| |
| |