Creating NC Sequences
 
Header file ProNcseq.h describes the element tree for manufacturing NC sequences.
There are supported NC sequence types:
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
PRO_NCSEQ_MW_ROTARY_FINISH_MILLING—High speed milling PRO_FEAT_MILL
PRO_NCSEQ_MW_UNDERCUT_MACHINING—High speed milling PRO_FEAT_MILL
Like workcells, an NC sequence feature has a number of non-redefinable elements. For all NC sequences, the PRO_E_NCSEQ_TYPE and PRO_E_NUM_AXES elements are non-redefinable. For holemaking sequences, the PRO_E_HOLEMAKING_TYPE, PRO_E_PECK_TYPE, and PRO_E_HOLE_CYCLE_TYPE elements are non-redefinable. These elements are specific to holemaking sequences and need not be defined for milling sequences. The following table shows the elements of an NC sequence. In this table, the Value column specifies whether the element is required (R) or optional (O).
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
The retraction plane that must be defined as part of the NC sequence requires the identifier of the underlying geometry of the datum plane. To obtain this identifier, visit the datum plane geometry items using ProFeatureGeomitemVisit().
There are also a number of required parameters for each NC sequence that must be defined. For conventional milling, the following parameters are required:
CUT_FEED
TOLERANCE
STEP_OVER
SPINDLE_SPEED
CLEAR_DIST
For face milling, the following parameters are required:
CUT_FEED
STEP_DEPTH
TOLERANCE
STEP_OVER
SPINDLE_SPEED
CLEAR_DIST
For holemaking, the following parameters are required:
CUT_FEED
TOLERANCE
SPINDLE_SPEED
CLEAR_DIST
Both milling and holemaking features elements require that the entities (and some associated properties) to be machined are set by API functions, rather than by element tree. Like the standard elements, these functions require a call to ProElementAlloc() to reserve space for the elements. Once the elements are complete, you can add them to the tree like the other standard elements.
Note:
 
Currently, using ProFeatureElemtreeExtract()with NC sequences yields an element tree without holes or surface elements. In other words, there is no way to retrieve hole set or surface information.
這是否有幫助?