Part Commands
The Template file must be given commands in order for a Part Report to be generated. A command specifies what to output, where to place the output and the incremental location for the data in the next operation. The typical structure of a part command is:
<Command> <row> <column> <row incremental change> <column incremental change>
|
Parameter
|
Meaning
|
|
<Command>
|
Command describing the information to extract
|
|
<row>
|
The cell row where the information for the first operation will be output
|
|
<column>
|
The cell column where the information for the first operation will be output
|
|
<row inc>
|
The increment in cell rows for all following operations
|
|
<col inc>
|
The increment in cell columns for all following operations
|
In the following example, we will create the command to output the material alloy group of the part to be machined in the fifth column on the third row of a report.
PartAlloy 5 3 1 0
If we were to output the part's alloy in the first column on the second row, we would use the following command:
PartAlloy 1 2 1 0
In both examples, any following reference to the alloy would be in the same column but one row down.
A comprehensive list of part commands may be found on the following page. The list is also supplied in PDF format. The file Part Commands.pdf may be found in the Documentation folder, which was installed with your new software.
Table 3: Part Commands
|
Command
|
Definition
|
Output
|
Machine
|
|
PartName
|
Saved name of the part
|
Text
|
Mill & Lathe
|
|
PartComment
|
Part Comment
|
Text
|
Mill & Lathe
|
|
PartFile
|
Returns full file name & path
|
Text
|
Mill & Lathe
|
|
PartAlloy
|
Material Alloy Group
|
Text
|
Mill & Lathe
|
|
PartFamily
|
Material Family
|
Text
|
Mill & Lathe
|
|
PartHardness
|
Material Hardness
|
Text
|
Mill & Lathe
|
|
PartUnit
|
Metric or Inch
|
Text
|
Mill & Lathe
|
|
PartMinX
|
Min X Stock Dimension
|
Value
|
Mill & Lathe
|
|
PartMinY
|
Min Y Stock Dimension
|
Value
|
Mill & Lathe
|
|
PartMinZ
|
Min Z Stock Dimension
|
Value
|
Mill & Lathe
|
|
PartMaxX
|
Max X Stock Dimension
|
Value
|
Mill & Lathe
|
|
PartMaxY
|
Max Y Stock Dimension
|
Value
|
Mill & Lathe
|
|
PartMaxZ
|
Max Z Stock Dimension
|
Value
|
Mill & Lathe
|
|
PartType
|
Mill or Lathe
|
0 - 20 See #1
|
Mill & Lathe
|
|
PartPost
|
Post file used
|
Text
|
Mill & Lathe
|
|
PartOutput
|
NCF File name
|
Text
|
Mill & Lathe
|
|
PartMddName
|
MDD Name
|
Text
|
Mill & Lathe
|
|
PartMddFile
|
MDD file name
|
Text
|
Mill & Lathe
|
|
PartTlChangeY
|
Y Tool Change Position
|
Value
|
Mill & Lathe
|
|
PartTlChangeX
|
X Tool Change Position
|
Value
|
Mill & Lathe
|
|
PartCPX
|
X CenterPoint
|
Value
|
Mill & Lathe
|
|
PartMachPos4h
|
Machine H position
|
Value
|
Mill
|
|
PartMachPos4v
|
Machine V position
|
Value
|
Mill
|
|
PartMachPos4d
|
Machine D position
|
Value
|
Mill
|
|
PartMachVec4h
|
Machine H position
|
Value
|
Mill
|
|
PartMachVec4v
|
Machine V position
|
Value
|
Mill
|
|
PartMachVec4d
|
Machine D position
|
Value
|
Mill
|
|
PartMachPos5h
|
Machine H position
|
Value
|
Mill
|
|
PartMachPos5v
|
Machine V position
|
Value
|
Mill
|
|
PartMachPos5d
|
Machine D position
|
Value
|
Mill
|
|
PartMachVec5h
|
Machine H position
|
Value
|
Mill
|
|
PartMachVec5v
|
Machine V position
|
Value
|
Mill
|
|
PartMachVec5d
|
Machine D position
|
Value
|
Mill
|
|
PartMachRange4Xmin
|
X Min
|
Value
|
Mill
|
|
PartMachRange4Xmax
|
X Max
|
Value
|
Mill
|
|
PartMachRange5Xmin
|
X Min
|
Value
|
Mill
|
|
PartMachRange5Xmax
|
X Max
|
Value
|
Mill
|
|
PartAutoClear
|
Value of Auto Clearance
|
Value
|
Lathe
|
|
PartAutoClrB
|
Auto Clearance On or Off
|
"0=Off, 1=On"
|
Lathe
|
|
PartRadius
|
Radius or Diameter
|
"0=Dia, 1=Rad"
|
Lathe
|
|
PartClrRad
|
Clearance Radius
|
Value
|
Lathe
|
|
PartMachAxes
|
Number of Axes
|
Number
|
Lathe
|
Underlined items should be used with the MapString command.
|
|
#1
|
0=Lathe75Shk
5=5AVertMill
10=Lathe15Shk
15=VLathe5Shk
20=NoPartType
|
1=3AVertMill
6=5AHorMill
11=Lathe5Shk
16=MillTurn1Shk
|
2=3AHorMill
7=EDM
12=VLathe75Shk
17=MillTurn5Shk
|
3=4AVertMill
8=MAT
13=VLathe1Shk
18=MillTurn75Shk
|
4=4AHorMill
9=Lathe1Shk
14=VLathe15Shk
19=MillTurn15Shk
|