Macro Commands Reference

The following is an alphabetical list of SmartCAM macro commands and system variables. The system variables available for each command are displayed.

The following conventions are used in this section:

Some of the following macros definitions list variables that may not be applicable to your SmartCAM product. Before using any macro, you should confirm that each variable is needed.

0-9 A Ar  Au B Bo Bu  C Cl Cr D  Di Dr E En  Ex F Fi Fl  G Gr H Hi  Ho I  J K  L Le Li Lo  M Me Mo 
N  Ne No O Op  P Pe Po Pr  Q R Ro Ru  S Se Sh Sl  Sp St Su T  Ti To Tr U  V W Wi X  Y Z ]
0-9 [To Top]
Feature 4-AXIS PATH
Command 4AXPATH[P1=I, P2=I, S1=I, S2=I, DS=D, OF=I, CD=D, FA=D]
Application Wire EDM
Parameters
Parameter Description Default
P1 Primary Range Start (required) None
P2 Primary Range End (required) None
S1 Secondary Range Start (required) None
S2 Secondary Range End (required) None
DS Offset Amount 0.0
OF Offset Side
Values: 0 = Left, 1 = Right, 2 = None
0
CD Chordal Deviation 0.0005
FA Finish Allowance 0.0
Feature 4-AXIS PATH GROUP VIEW
Command 4AXVIEW[E1=I]
Notes Displays the 4-axis path, in the graphics view, by drawing "highlight" markers along the path.
Application Wire EDM
Parameters
Parameter Description Default
E1 Element number from 4axis path (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
A [To Top]
Feature Add/Edit Step
Notes No macro command for this function.
Feature ADD LAYER
Command ADD_LAYER[LY=I, NM=S, CO=I, ST=I, TP=I, TV=D]
Application All
Parameters
Parameter Description Default
LY Layer Number (required) None
NM Layer description None
CO Color (required) None
ST Line Style (required)
Values: 0 = Solid, 1 = Dotted, 2 = Broken
None
TP Transparency
Values: 0 = Off, 1 = On
0
TV Transparency Amount
Values: 0 = Solid to 1 = Clear
0.5
Feature Add Tool
Notes No macro command for this function.
Ar [To Top]
Feature ARC
Command ARC[DR=I, XC=D, YC=D, RA=D, XS=D, YS=D, AS=D, TS=I, XE=D, YE=D, AE=D, TE=I, XI=D, YI=D, TI=I, SS=I, SC=I, SE=I, SI=I, LV=D]
Application All
Parameters
Parameter Description Default
DR Arc Direction
Values: 0 = CW, 1 = CCW
None
XC Center Point X (Center Point Z for Turning) None
YC Center Point Y (Center Point D for Turning) None
RA Radius None
XS Start Point X (Start Point Z for Turning) None
YS Start Point Y (Start Point D for Turning) None
AS Start Angle None
TS Start Tangent
Value: Arc or Line element number
None
XE End Point X (End Point Z for Turning) None
YE End Point Y (End Point D for Turning) None
AE End Angle None
TE End Tangent
Value: Arc or Line element number
None
XI Intermediate Point X (Int Point Z for Turning) None
YI Intermediate Point Y (Int Point D for Turning) None
TI Intermediate Tangent
Value: Arc or Line element number
None
SS Start Solution Designator
Values: 0 = +, 1 = -, 2 = N/A
2
SC Center Solution Designator
Values: 0 = +, 1 = -, 2 = N/A
2
SE End Solution Designator
Values: 0 = +, 1 = -, 2 = N/A
2
SI Intermediate Solution Designator

Values: 0 = +, 1 = -, 2 = N/A
2
LV Modal
Feature ARC/LINE FIT
Command ARC_LINE_FIT[TY=I, WP=I, TO=D, MP=1, KP=1]
Application All
Parameters
Parameter Description Default
TY Fit (required)
Values: 0 = Lines, 1 = Arcs, 2 = Lines and Arcs
0
WP Workplane (required)
Values: 0 = Active, 1 = Existing, 2 = New or Existing
0
TO Tolerance (required) 0.0
MP Match Properties (required)
Values: 0 = Off, 1 = On
0
KP Keep Original (required)
Values: 0 = Off, 1 = On
0
Feature ARC PROFILE
Command ARC_PROF[XC=D, YC=D, XE=D, YE=D, AE=D, XI=D, YI=D, XJ=D, YJ=D, XK=D, YK=D, DR=I, RA=D, TI=I, SS=I, SC=I, SE=I, SP=I, LV=D]
Notes The Arc and Line profile commands need to be used in combination with PROF_CONTEXT_OPEN and PROF_CONTEXT_CLOSED macro commands. The PROF_CONTEXT_OPEN command starts the profile context, then you start your profile using the START_PROF command, followed by the Line and Arc profile statements needed to construct your profile. Then end the profile with the PROF_CONTEXT_CLOSE command.
Application All
Parameters
Parameter Description Default
XC Center Point X None
YC Center Point Y None
XE End Point X None
YE End Point Y None
AE End Angle None
XI 1st Intermediate Point X None
YI Ist Intermediate Point Y None
XJ 2nd Intermeidate Point X None
YJ 2nd Intermediate Point Y None
XK 3rd Intermediate Point X None
YK 3rd Intermediate Point Y None
DR Direction
Values: 0 = CW, 1 = CCW
0
RA Radius None
TI Tangent/Intersect to previous element
Values: 0 = Intersect, 1 = Tangent
0
SS Start Solution Designator
Values: 0 = +, 1 = -, 2 = N/A
2
SC Center Solution Designator
Values: 0 = +, 1 = -, 2 = N/A
2
SE End Solution Designator
Values: 0 = +, 1 = -, 2 = N/A
2
SP Solution pending
Values: 0 = +, 1 = -, 2 = N/A
2
LV Level Modal
Feature ARCS TO HOLES
Command CNV_A2H[CL=D, CN=I, KA=I, LV=D, TD=D]
Notes Converts arc elements, in the active group, to holes.
Application All
Parameters
Parameter Description Default
CL Clearance value None
CN Clear On
Values: 0 = Off, 1 = On, 2 = No change
0
KA Keep Original Arcs
Values: 0 = Off, 1 = On
0
LV Level Modal
TD Tip Depth None
Feature AREA CLEAR
Command AREA_CLR[PB=I, NB=I, XS=D, YS=D, XI=D, YI=D, TY=I, NT=I, WC=D, FA=D, PA=D, OA=D]
Application Fabrication
Parameters
Parameter Description Default
PB Area Boundary element (required) None
NB Material Boundary element, for notch None
XS Start Corner X 0.0
YS Start Corner Y 0.0
XI Inside Area X 0.0
YI Inside Area Y 0.0
TY Path Type
Values: 0 = Spiral, 1 = ZigZag
0
NT Notch
Values: 0 = Closed boundary, 1 = Notch
0
WC Width of Cut (required) None
FA Finish Allowance 0.0
PA Pass Angle (for ZigZag) 0.0
OA Overlap Amount 0.0
Au [To Top]
Feature AUTO ABORT
Command AUTO_ABORT[ABORT=I]
Notes Auto Abort allows a macro to exit, when an error condition is reached, without displaying the two normal error messages. Without this, when an error is encountered, first a message is displayed telling you the macro is ending, then a second explaining what happened.

When AUTO_ABORT is used, the macro will close immediately. This command is not recordable.

Related to the AUTO_ANSWER macro command.

Application All
Parameters
Parameter Description Default
ABORT Enable or disable Auto Abort (required)
Values: 0 = Off, 1 = On
None
Feature AUTO ANSWER
Command AUTO_ANSWER[AA=S]
Notes Auto Answer automatically responds to displayed message boxes with the user supplied response. When a non-error message is displayed, this macro statement will automatically respond to the message without stopping the macro or displaying the message box.

Once called, Auto Answer will stay on until macro playback is complete or until it is explicitly turned off; by using AUTO_ANSWER[AA="OFF"]. Auto Answer cannot be used to trigger or accept non-message dialog boxes, such as Save or Display Modes.

Errors will not be ignored or handled by this macro command, they will halt the macro. This macro command is not a recordable macro command.

Related to the AUTO_ABORT macro command.

Application All
Parameters
Parameter Description Default
AA Enable or display automatically answering message boxes. (required)
Values: "OFF", "OK", "YES", "CANCEL", or "NO"

When used this values respond in this way:

  • OFF
    No auto responding, message box will be displayed and will interrupt macro processing
  • OK or YES
    Answers with Ok or Yes where applicable
  • CANCEL
    Answers with Cancel, when applicable, otherwise works like OK
  • NO
    Answers with NO, when applicable, otherwise works like CANCEL
None
Feature AUTO BALANCE ROUGHING
Command AUTO_BALANCE[TL=I]
Application Advanced Turning
Parameters
Parameter Description Default
TL Step to use with Balanced Passes (required) None
Feature AUTO NEST
Command AUT_NEST[XS=D, YS=D, XE=D, YE=D, FD=I, NS=I, SP=D, RO=I, FL=I, CO=I, ST=I]
Application Fabrication and Milling
Parameters
Parameter Description Default
XS Area Start Corner X (required) None
YS Area Start Corner Y (required) None
XE 2nd Corner X (required) None
YE 2nd Corner Y (required) None
FD Row Direction
Values: 0 = X axis, 1 = Y axis
0
NS Nest Pattern
Values: 0 = Grid, 1 = Stagger
0
SP Distance 0.0
RO Allow Rotation
Values: 0 = No, 1 = Yes
0
FL Fill Area
Values: 0 = Limit copies to Copy Limit (CO), 1 = Fill the area
0
CO Copy Limit 0
ST Sort by Tools
Values: 0 = Off (No), 1 = On (Yes)
Feature AUTO SELECT
Command FAUTOSEL_V15[RO=I, SQ=I, RE=I, OB=I, CO=I, PT=D, CC=I, CX=I, TF=I, TT=D, AC=D, RS=I]
Application Fabrication
Parameters
Parameter Description Default
RO Round Tools (required)
Values: 0 = Off, 1 = On
None
SQ Square Tools (required)
Values: 0 = Off, 1 = On
None
RE Rectangular Tools (required)
Values: 0 = Off, 1 = On
non-zero
OB Obround Tools (required)
Values: 0 = Off, 1 = On
None
CO Contouring Tools (required)
Values: 0 = Off, 1 = On
None
PT Punch Tolerance (required) None
TF Refine Curve Fit (required)
Values: 0 = Off, 1 = On
None
TT Refine Curve Fit Tolerance (required) None
AC Corner Roll Angle (required) None
RS Roll Short Segments (required)
Values: 0 = Off, 1 = On
Feature AUTO UNFOLD
Command UNFOLD[BE=I, BS=I, ML=I, CP=I, AM=I, TH=D, IR=D, KF=D, HC=D, MT=D, AD=D]
Application Fabrication
Parameters
Parameter Description Default
BE Base Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
BS Sheet Side
Values: 0 = Bottom, 1 = Middle, 2 = Top
1
ML Mold Lines
Values: 0 = Off, 1 = On
0
CP Create Profile
Values: 0 = Off, 1 = On
1
AM Animate Unfold
Values: 0 = Off, 1 = On
1
TH Thickness 0.0
IR Inside Radius 0.0
KF K Factor 0.0
HC Hem Compensation 0.0
MT Multiply 1.0
AD Add 0.0
B [To Top]
Feature BASE
Command BASE[]
Notes No parameters for this command. Zooms graphics view to the base view of the model, which are the extents of the view envelope.
Application All
Feature BLEND
Command BLEND[E1=I, E2=I, S1=I, S2=I, IN=I, DR=I, RA=D]
Application All
Parameters
Parameter Description Default
E1 First Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Second Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S1 First blend side
Values: 0 = Mouse, 1 = Right, 2 = Left
0
S2 Second blend side
Values: 0 = Mouse, 1 = Right, 2 = Left
0
IN Blend number
Values: 1 = First Blend, 2 = Second Blend
DR Arc Direction
Values: 0 = Small, 1 = Large
0
RA Radius (required) None
Feature BLEND MESH
Command BLEND_SURFS[E1=I, E2=I, E3=I, E4=I, S1=I, T1=I, S2=I, T2=I, PD=I, SP=I, SV=D, DI=I, DV=D, RS=D, RE=D, CC=I, CM=I, VT=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 1st Mesh Start element (required) None
E2 1st Mesh End element (required) None
E3 2nd Mesh Start element (required) None
E4 2nd Mesh End element (required) None
S1 1st Mesh Blend Side
Values: 0 = Pos, 1 = Neg
0
S2 2nd Mesh Blend Side
Values: 0 = Pos, 1 = Neg
0
T1 Trim 1st Mesh
Values: 0 = Off, 1 = On
1
T2 Trim 2nd Mesh
Values: 0 = Off, 1 = On
1
PD Path Direction
Values: 0 = Cross (arcs), 1 = Along (flow)
0
SP Spacing
Values: 0 = Distance, 1 = Count
0
SV Spacing Value (required) None
DI Divisions (type)
Values: 0 = Distance, 1 = Count
0
DV Divisions Value (required) None
RS Start Radius (required) None
RE End Radius (required) None
CC Contact Curve
Values: 0 = Off, 1 = On
0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
VT Virtual mesh tolerance Modal
Bo [To Top]
Feature BOLT HOLE CIRCLE
Notes Implemented as a custom macro function. See the BHC.MCL macro file in your SYSMCL directory.

To incorporate in your macro, use MAC_EXE[] to call the shipped macro.

Application All
Feature BOOLEAN
Command BOOLGEOM[TYP=I, KO=I, AIM=I, BIM=I, ADX=I, BDX=I, AGN=I, BGN=I, TOL=D]
Application All
Parameters
Parameter Description Default
TYP Operation (required)
Values: 0 = Intersect, 1 = Union, 2 = Subtract
0
KO Keep Original (required)
Values: 0 = Off, 1 = On
1
AIM A Input Mode (required)
Values: 0 = Profile, 1 = Layer, 2 = Step, 3 = Group
0
BIM B Input Mode (required)
Values: 0 = Profile, 1 = Layer, 2 = Step, 3 = Group
0
ADX A Input index for Profile Element, Layer Number, or Step Number (required for respective input mode) 1
BDX B Input index for Profile Element, Layer Number, or Step Number (required for respective input mode) 1
AGN A Input Group name (required for respective input mode) None
BGN B Input Group name (required for respective input mode) None
TOL Tolerance 0.0001
Feature BOUNDARY (MULTIPLE)
Command BOUND_ALL[SE=I, TO=D]
Application All
Parameters
Parameter Description Default
SE Element Index of Surface (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.

Creates a boundary profile around all sides of the selected surface.

None
TO Tolerance for Curve Approximation 0.001
Feature BOUNDARY (GROUP)
Command BOUND_GROUP[TO=D]
Application All
Parameters
Parameter Description Default
TO Tolerance for Curve Approximation 0.001
Feature BOUNDARY (SINGLE)
Command BOUND_ONE[SE=I, TO=D, LP=I, VI=I, DI=I]
Application All
Parameters
Parameter Description Default
SE Element Index of Surface (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.

Creates a single profile boundary around a selected side, from a surface.

None
TO Tolerance for Curve Approximation 0.001
LP Index of Boundary (required) None
VI Index of Start Vertex (required) None
DI Whether or not to reverse the output direction (required)
Values: 0 = No, 1 = Yes
None
Feature BOUNDARY SURFACE
Command SRF_BNDRY[PEL=I, SEL=I, SS=I]
Application FreeForm Machining
Parameters
Parameter Description Default
PEL Profile Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
SEL Surface Exemplar. Used when SS=1 0
SS Use Surface Exemplar.
Values: 0 = Off, 1 = On
0
Feature BOX GROUP
Command BOX_GRP[X1=D, Y1=D, X2=D, Y2=D, PC=I, AR=I]
Application All
Parameters
Parameter Description Default
X1 First Box Corner X (required) None
Y1 First Box Corner Y (required) None
X2 Second Box Corner X (required) None
Y2 Second Box Corner Y (required) None
PC Partial/Complete (required)
Values: 0 = Partial, 1 = Complete
None
AR Add/remove (required, modal)
Values: 0 = Add, 1 = Remove
None
Bu [To Top]
Feature BUILD FACES
Command FACES[E1=I, E2=I, SC=I]
Application Fabrication
Parameters
Parameter Description Default
E1 Surface Start (required) None
E2 Surface End (required) None
SC Scribe Faces
Values: 0 = Off, 1 = On
0
C [To Top]
Feature CHAIN
Command CHAIN[EL=I, PJ=I]
Application All
Parameters
Parameter Description Default
EL Element in Profile (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PJ Polyline Join
Values: 0 = Chain, 1 = Poly Join, 2 = Both
0
Feature CHAMFER
Command CHAMF[E1=I, E2=I, S1=I, S2=I, IN=I, AN=D, DS=D, D1=D, D2=D]
Application All
Parameters
Parameter Description Default
E1 1st Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 2nd Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S1 1st Side 0
S2 2nd Side 0
IN Intersection Number 0
AN Angle None
DS Length None
D1 Parallel Size None
D2 Perpendicular Size None
Cl [To Top]
Feature CLIP TO INTERSECTIONS
Command CLIP[EL=I, XS=D, YS=D]
Notes The XS and YS coordinates signify which part of the element to clip and delete.
Application All
Parameters
Parameter Description Default
EL Element Name or Number to Clip (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
XS X coordinate of point near element, in active workplane coordinates (required) None
YS X coordinate of point near element, in active workplane coordinates (required) None
Feature CLEAR NAME ELEMENT
Command CL_NAME_ELMT[EL=I]
Application All
Parameters
Parameter Description Default
EL Element name/number to clear element name (required) None
Feature CODE
Command CODE[FN=S, MS1=S, MT1=S, SS1=S, ST1=S, MS2=S, MT2=S, SS2=S, ST2=S, RN=I, OPEN=I, SEC=I, LIN=I, CND=I, ERR=I]
Application All
Parameters
Parameter Description Default
FN Code Output Filename Current Model Name
MS1 Filename for Master SMF All Applications (turret 1 for turning) None
MT1 Filename for Master CGT All Applications (turret 1 for turning) None
SS1 Turning only - Filename for Slave SMF for turret 1 None
ST1 Turning only - Filename for Slave CGT for turret 1 None
MS2 Turning only - Filename for Master SMF for turret 2 None
MT2 Turning only - Filename for Master CGT for turret 2 None
SS2 Turning only - Filename of Slave SMF for turret 2 None
ST2 Turning only - Filename of Slave CGT for turret 2 None
RN Range to code
Values: 0 = Entire Model, 1 = Active Group, 2 = Active Step
0
OPEN Open Code File.
Values: 0 = Off, 1 = On

After generating NC code file, opens in default editor (using Windows File Association's default editor, based on extension of output file)

0
SEC Output cgt section info
Values: 0 = Off, 1 = On
0
LIN Output cgt line info
Values: 0 = Off, 1 = On
0
CND Output cgt conditionals info
Values: 0 = Off, 1 = On
0
ERR Output cgt processing errors
Values: 0 = Off, 1 = On
0
Feature COLOR CHANGE
Command COLOR_CHG[CO=I, TY=I, TT=S, TL=I, DI=D, ST=I, TP=I, TV=D]
Application All
Parameters
Parameter Description Default
CO Color Index Value
Values: 0 to 63

Color Index values, in SmartCAM, start at zero (0). So the 64 digit range runs from 0 to 63, not 1 to 64.

1
TY Type
Values: 0 = Step, 1 = Layer, 2 = Tool
0
TT Tur:TL (Turning only) None
TL Step/Layer/Tool (required) None
DI Tool diameter None
ST Style (for layer only)
Values: 0 = Solid, 1 = Broken, 2 = Dotted
0
TP Transparency
Values: 0 = Off, 1 = On
0
TV Transparency Percentage
0 = Solid, 1 = Clear
0.5
Feature CONNECT MESH
Command CONNECT[DS=D, DM=I]
Application FreeForm Machining, Advanced Milling
Parameters
Parameter Description Default
DS Maximum connection distance (required) None
DM Disconnect mesh (required)
Values: 0 = Off, 1 = On
0
Feature CREATE ZIGZAG
Command CNECT_1WAY[E1=I, E2=I]
Notes This macro command takes a range of elements and connects a line from the end of the 1st element to the start of the 2nd, from the end of the 2nd to the start of the 3d, and so forth.

There is no UI for this macro command. You can use Macro - Command to run this function. If you are recording a macro, Macro - Command statements will both be executed and recorded in your macro.

Application All
Parameters
Parameter Description Default
E1 Element range start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Element range end (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature CONTAINER
Command CONTAINER[NN=S, TX=S]
Application All
Parameters
Parameter Description Default
NN Element Name None
TX Name for container None
Feature CONTOUR MACHINING
Command CONTOUR_V15[SU=I, DS=D, DC=D, EU=I, DE=D, US=I, XS=D, YS=D, OA=D, TI=D, TO=D, PT=I,
SS=I, CL=I, CP=I, CF=I, LU=I, LN=S, AS=I, AE=I, AD=I, AV=D, CSN=S, ASN=S, UA=I, AA=D, IU=I]
Notes The CONTOUR_v15 macro command should be preceded by the LEAD_PARAMS[] macro command to establish the Lead In/Out settings.
Application FreeForm Machining
Parameters
Parameter Description Default
SU Use Depth of Start Z/First Pass Level
Values: 0 = Off, 1 = On
0
DS Depth of Start Z/First Pass Level (required if SU=1) 0.0
DC Depth of Cut (required) None
EU Use Depth of Ending Z/Final Pass Level
Values: 0 = Off, 1 = On
0
DE Depth of Ending Z/Final Pass Level (required if EU=1) 0.0
US Use Profile Start Point
Values: 0 = Off, 1 = On
0
XS Profile Start X Point value (required if US=1) 0.0
YS Profile Start Y Point value (required if US=1) 0.0
OA Offset (Finish) amount (required) None
TI In Tolerance (required) None
TO Out Tolerance (required) None
PT Path Type
Values: 0 = Zigzag, 1 = One-way Plunge
1
SS Surface Side
Values: 0 = Off, 1 = On
0
CL Climb Cut
Values: 0 = Conventional, 1 = Climb
1
CP Closed Profiles only (required)
Values: 0 = Off (Open+Closed), 1 = On (Closed Only)
1
CF Clear/Feed (required)
Values: 0 = Absolute, 1 = Incremental
None
LU Use Log File
Values: 0 = Off, 1 = On
0
LN Log Filename None
AS Adjust First Pass (Start)
Values: 0 = Off, 1 = On
1
AE Adjust Final Pass (End)
Values: 0 = Off, 1 = On
1
AD Adjust Depth of Cut
Values: 0 = Off, 1 = On
1
AV Adjustment Value
Values: a constant or expression
0.01*(InTol+OutTol)/2
CSN Cut surfaces group name None
ASN Avoid surfaces group name None
UA Allowance type selection.
Values: 0 = Use Finish Allow, 1 = Specify
0
AA Avoidance allowance value 0.0
Feature CONTOUR ROUGH
Command TCONTOUR[PS=I, PE=I, MM=I, MS=I, ME=I, ZS=D, XS=D, DP=D, NP=I, XF=D, ZF=D, FC=I, LA=D, TA=D, CD=D, LD=D, BP=I, TF=I, TT=D, TP=I, LY=I, RS=I]
Application Turning
Parameters
Parameter Description Default
PS Part Profile Start element (required) None
PE Part Profile End element (required) None
MM Material Defined By (required)
Values: 0 = Material Profile, 1 = Material Point, 2 = Part Profile
None
MS Material Profile Start element None
ME Material Profile End element None
ZS Material Point Z None
XS Material Point D None
DP Pass Depth (required) None
NP #Passes - number of passes (required) None
XF X Finish Amount (required) None
ZF Z Finish Amount (required) None
FC Facing (required)
Values: 0 = Off, 1 = On
None
LA Effective Leading Edge Angle (required) None
TA Effective Trailing Edge Angle (required) None
CD Clearance distance (required) None
LD Infeed Distance (required) None
BP Bidirectional passes (required)
Values: 0 = Off, 1 = On
None
TF Refine Curve Fit
Values: 0 = Off, 1 = On
0
TT Refine Curve Fit Tolerance 0.0
TP Create TPP - Theoretical Part Profile (required)
Values: 0 = Off, 1 = On
None
LY TPP Layer (required)
Values: 1 - 9999
None
RS Return to Start
Values: 0 = Off, 1 = On
0
Feature COONS MESH
Command COONS[E1=I, E2=I, E3=I, E4=I, BP=I, PD=I, SP=I, SV=D, ZT=D, DI=I, DV=D, OF=D, OA=D, GC=I, CM=I]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 1st Profile Start (required) None
E2 1st Profile End (required) None
E3 2nd Profile Start (required) None
E4 2nd Profile End (required) None
BP By Patch tangents
Values: 0 = Off, 1 = On
0
PD Path Direction
Values: 0 = Cross, 1 = Along, 2 = Planar
0
SP Spacing
Values: 0 = Distance, 1 = Count, 2 = Cusp Height
0
SV Spc Val - Spacing value (required) None
ZT Planar Z 0.0
DI Divisions
Values: 0 = Distance, 1 = Count, 2 = Mid Tol, 3 = In Tol, 4 = Out Tol
0
DV Div Val - Division value (required) None
OF Offset
Values: 0 = Positive, 1 = Negative, 2 = 0
2
OA Finish Allowance 0.0
GC Gouge Correction
Values: 0 = Off, 1 = On
0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
Feature COONS SURFACE
Command SRF_COONS[E1=I, E2=I, E3=I, E4=I]
Application FreeForm Machining
Parameters
Parameter Description Default
E1 1st Profile Start (required) None
E2 1st Profile End (required) None
E3 2nd Profile Start (required) None
E4 2nd Profile End (required) None
Feature COORDINATE LIST
Command COORDLST[VN=S, DM=I]
Notes A special type of data variable, which holds a list of coordinate systems. There is no UI for creating these.
Application All
Parameters
Parameter Description Default
VM Variable Name (required) None
DM Number of ordinate dimensions.
Values: 2 = 2-D, 3 = 3-D, 4 = 3-D with UV, 6 = 3-D Z/W only

2 = Uses X and Y (polyline only)
3 = Uses X, Y, and Z (polyline only)
4 = Uses X, Y, U, and V. The Level and Profile Top values from Insert bar are used for Z and W (5-axis polyline only)
6 = Uses only the Z and W values; rest of the full definition is ignored (5-axis polyline only)

#CLVAR = { #,#,#, 
#,#,#,
... 
#,#,#}
For VN=#CLVAR, DM=3 

#CLVAR = {#,#,
#,#
... 
#,#}
For VN=#CLVAR, DM=2
Feature COPY IMAGE
Command COPY_IMAGE[]
Notes There are no parameters for this macro command. It copies the contents of the current graphics view to the Windows Clipboard.
Application All
Cr [To Top]
Feature CREATE LINKS
Command CRE_LINK[CC=I, P1=I, P2=I, S1=I, S2=I, XS=D, YS=D, ZS=D, XE=D, YE=D, ZE=D]
Application Advanced Wire EDM
Parameters
Parameter Description Default
CC Create Choice
Values: 0 = Range, 1 = Element
0
P1 Primary Range Start None
P2 Primary Range End None
S1 Secondary Range Start None
S2 Secondary Range End None
XS Start Point X None
YS Start Point Y None
ZS Start Point Z None
XE End Point X None
YE End Point Y None
ZE End Point Z None
Feature CREATE REGEN MCL CONTAINERS
Command CTK_RECALL_CONTAINER[PN=S, VL=S, NN=S, TX=S]
Application All
Parameters
Parameters Description Default
PN Command is used in combination with a CTK/MCL automation. In this command you enter the name of the CTK panel that was used to create the associated geometry. As an example, the CTK panel used for User Elmt - Rectangle is "Rectangle", so this is what you would enter in the field. None
VL A single string listing the variables to capture in the container; so that the information needed to Recall the container exists. SmartCAM will automatically capture the variables contained on the referenced Panel. However, if there are any additional variables you want to preserve, you can enter them here.

The parameter is a single string is variables, separated by a comma, with the # marker. Example: VL="V1,V2,V3"

None
NN String containing a very short name for the generated container. This is the name that will be displayed in the List View. As an example for the Rectangle automation the name is "Rectangle". None
TX A string containing the Tool Tip for the container. When you hover the mouse over the container, this text is displayed. None
D [To Top]
Feature DEFAULTS: Use System
Command DEFAULTS_READ_SYS[]
Notes This macro command does not have any parameters.

When run, it causes SmartCAM to use the shipping System default panel input values. Keep Default are not used. SmartCAM will reset back to using the Keep Default overrides when you start a new session, exit and restart the application, or run the DEFAULTS_READ_USER macro command.

Application All
Feature DEFAULTS: Use Keep Defaults
Command DEFAULTS_READ_USER[]
Notes This macro command does not have any parameters.

Resets SmartCAM and allows user stored Keep Default values to override default shipping values, for panel inputs. You can force SmartCAM to use the default shipping values, ignoring any Keep Default overrides, with the DEFAULTS_READ_SYS macro command.

Application All
Feature DEFINE DRILL SUB
Command DRL_DEFINE[NN=S, CP=I, XE=D, YE=D, ZE=D, TD=D]
Application Milling
Parameters
Parameter Description Default
NN Drill Subroutine Name None
CP Repeats 0
XE Handle Point X None
YE Handle Point Y None
ZE Handle Point Z None
TD Tip Depth None
Feature DEFINE PLANE
Command DEF_PLANE[TY=I, FR=I, WP=S, TP=S, X1=D, Y1=D, Z1=D, X2=D, Y2=D, Z2=D, XI=D, YI=D, ZI=D, RO=I, AA=D, AB=D, AC=D, ZD=I, MP=I, SS=I]
Application All
Parameters
Parameter Description Default
TY Type (definition method)
Values: 0 = 3 Points, 1 = Line/Angle, 2 = Rotation
0
FR From World (which coordinate system)
Values: 0 = Active Plane, 1 = World
1
WP Plane Name (required) None
TP Tool Plane None
X1 (required) Origin Point X None
Y1 (required) Origin Point Y None
Z1 (required) Origin Point Z None
X2 Plus-X Point X (required for 3-points and line/angle types) None
Y2 Plus-X Point Y (required for 3-points and line/angle types) None
Z2 Plus-X Point Z (required for 3-points and line/angle types) None
XI Third Point X (required for 3-points type) None
YI Third Point Y (required for 3-points type) None
ZI Third Point Z (required for 3-points type) None
RO Rotation Order (Ord)
Values: 0 = ABC, 1 = BAC, 2 = ACB, 3 = BCA
0
AA Angle A (required for line/angle and rotation types) None
AB Angle B (required for line/angle and rotation types) None
AC Angle C (required for line/angle and rotation types) None
ZD Z Axis direction
Values: 0 = Positive, 1 = Negative
0
MP Match Plane
Values: 0 = Off, 1 = On
0
SS On Sub-spindle (Adv. Turning only)
Values: 0 = Not Sub-spindle, 1 = On Sub-spindle
0
Feature DEFINE SUBROUTINE
Command SUB_DEFINE[NN=S, CP=I, UE=I, XE=D, YE=D, ZE=D, AS=D, RR=I]
Application All
Parameters
Parameter Description Default
NN Subroutine Name (required) None
CP Repeats 0
UE Use Active Step/Layer properties
Values: 0 = No, 1 = Yes
0
XE Handle Point X (required) None
YE Handle Point Y (required) None
ZE Handle Point Z (required) None
AS Rotation Angle 0.0
RR Rotate Repeats
Value: 0 = No, 1 = Yes
0
Feature DELETE
Command DELETE[EL=I]
Application All
Parameters
Parameter Description Default
EL Element Number (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Di [To Top]
Feature DISPLAY DIALOG
Command DIALOG[FN=S, ID=I]
Notes Displays a Dialog Box, based on the boxes' ID, from a Custom Control Panel (PCB) file. PCB files are created using Visual CTK.
Application All
Parameters
Parameter Description Default
FN Path and Filename for PCB file to use (required) None
ID Dialog ID (required) None
Feature DIMENSION LINEAR
Command DIM_RECT[XE=D, YE=D, XS=D, YS=D, XI=D, YI=D, LV=D, TX=S, PX=S, SX=S, AL=I, DT=I, NF=I, EG=D, ED=D, DG=D, L1=I, L2=I, HT=D, LA=D, AR=I, FN=S, AF=S]
Application All
Parameters
Parameter Description Default
XE Dimension 2nd Point X None
YE Dimension 2nd Point Y None
XS Dimension 1st Point X None
YS Dimension 1st Point Y None
XI Text Location X None
YI Text Location Y None
LV Level Modal
TX Text (optional) - overrides dimension value None
PX Text Prefix None
SX Text Suffix None
AL Align Text
Values: 0 = Off, 1 = On
0
DT Dimension type parallel
Values: 0 = X axis, 1 = Y axis, 2 = Aligned with points
2
NF Numerical format
Values: 1 - 5
None
EG Extension Line Gap None
ED Extension Line Distance None
DG Dimension Line Gap None
L1 Create 1st Extension Line
Values: 0 = Off, 1 = On
1
L2 Create 2nd Extension Line
Values: 0 = Off, 1 = On
1
HT Text Height None
LA Arrow Length None
AR Create Arrow (line terminators)
Values: 0 = Off, 1 = On
1
FN Font File path/filename.ext None
AF Arrow File path/filename.ext None
Feature DIMENSION TEXT
Command DIM_TEX[XE=D, YE=D, LV=D, TX=S, AL=I, AN=D, DG=D, HT=D, LA=D, AR=I, FN=S, AF=S, CL={}]
Application All
Parameters
Parameter Description Default
XE Dimension End X None
YE Dimension End Y None
LV Z level for all text/leaders Modal
TX Text to display None
AL Align Text
Values: 0 = No, 1 = Yes
0
AN Rotation Angle Modal
DG Dimension Line Gap None
HT Text Height None
LA Arrow Length None
AR Create Arrow (line terminators)
Values: 0 = Off, 1 = On
None
FN Font File, fully qualified path/filename.ext to font file None
AF Arrow File, fully qualified path/filename.ext to arrow file None
CL 2-D coordinate list {X1, Y1, ..., Xn,Yn}
Location of text / leader. Coordinate List must be last parameter.
None
Feature DISPLAY MODES
Command DISP_MODE[TH=I, WA=I, WI=I, GR=I, DL=I, IP=I, VF=I, SZ=D, GI=D, CS=I, DT=I, GM=I, WS=I, WL=I, CC=I, SN=I, SS=I, FQ=I, EQ=I, TP=I, TV=D, RGN=I, TTP=#, TTV=D, HI=I, PO=I, SE=I, XD=I, FD=I, LD=I, RR=I, SW=I, SP=I, FO=I]
Application All
Parameters
Parameter Description Default
TH Thickness
Values: 0 = Off, 1 = On
None
WA World XYZ Axis
Values: 0 = Off, 1 = On
None
WI Work Plane Indicator
Values: 0 = Off, 1 = On
None
GR Grid
Values: 0 = Off, 1 = On
None
DL World Coordinates: Element Display
Values: 0 = Off, 1 = On
None
IP World Coordinates: Input
Values: 0 = Off, 1 = On
None
VF Vertical Line Frequency
Values: 0 - 99
None
SZ Relative Screen Size (for workplane indicator)
Values: 0.0 - 1.0
None
GI Grid Increment None
CS Curve Segment Count
Value: 0 - 99
None
DT Draw Tools
Values: 0 = No tools, 1 = Flat tools, 2 = Blips, 3 = 3D Tools, 4 = 3D Solid Tools
None
GM Element Marking
Values: 0 = Arrow, 1 = Dotted, 2 = Dotted & Arrow, 3 = Color, 4 = Color & Arrow
None
WS Thick Step Lines
Values: 0 = Off, 1 = On
None
WL Thick Layer Lines
Values: 0 = Off, 1 = On
None
CC Show Conic Centers
Values: 0 = Off, 1 = On
None
SN Normal Display (surfaces)
Values: 0 = Off, 1 = All, 2 = Group
None
SS Shade Surfaces
Values: 0 = Off, 1 = On
None
FQ Face Quality
Values: 0 = Coarse, 1 = Med. Coarse, 2 = Med. Fine, 3 = Fine, 4 = Extra Fine
1
EQ Edge Quality
Values: 0 = Good, 1 = Better, 2 = Best
2
TP Transparency
Values: 0 = Off, 1 = On
None
TV Transparency percentage
Values: 0.0 (completely clear) to 1.0 (opaque)
None
RGN Region Marking (Milling and Advanced Turning)
Values: 0 = Off, 1 = On
None
TTP Tool Transparency (not in Fabrication)
Values: 0 = Off, 1 = On
None
TTV Tool Transparency Percentage (not in Fabrication)
Values: 0.0 (transparent) to 1.0 (opaque)
None
HI Highlight Inverted Surfaces
Values: 0 = Off, 1 = On
None
PO Improve Wireframe Visibility
Values: 0 = Off, 1 = On
None
SE Display Boundary Edges
Values: 0 = Off, 1 = On
None
XD X Diameters (Turning only)
Values: 0 = Off, 1 = On
None
FD Mirror Diameters (Turning only)
Values: 0 = Off, 1 = On
None
LD Revolve Endpoints (Turning only)
Values: 0 = Off, 1 = On
None
RR ShowPath Rapid Ratio (Turning only) None
SW 4-Axis Synch CMDs (Turning only)
Values: 0 = Off, 1 = On
None
SP 4-Axis ShowPath Priority (Turning only)
Values: 0 = Fastest, 1 = Slowest
None
FO Diameter Options (Turning only)
Values: Tools = 0, Layers = 1, Both = 2
None
SA Sub-Spindle Axes (Turning Only)
Values: 0 = Off, 1 = On
None
Dr [To Top]
Feature DRAFT MESH
Command DRAFT_SURF[E1=I, E2=I, E3=I, E4=I, PD=I, SP=I, OF=I, SV=D, ZT=D, OA=D, CM=I, GC=I, VT=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 Generator Profile Start (required) None
E2 Generator Profile End (required) None
E3 Director Profile Start (required) None
E4 Direct Profile End (required) None
PD Path Direction
Values: 0 = Generator, 1 = Director
0
SP Spacing
Values: 0 = Distance, 1 = Count
0
OF Offset
Values: 0 = Positive, 1 = Negative, 2 = 0
2
SV Spacing Value (required) None
ZT Planar Z 0.0
OA Finish amount 0.0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
GC Gouge Correction
Values: 0 = Off, 1 = On
0
VT Virtual Mesh Tolerance Modal
Feature DRAFT SURFACE
Command SRF_DRAFT[E1=I, E2=I, E3=I, E4=I]
Application FreeForm Machining
Parameters
Parameter Description Default
E1 Generator Profile Start (required) None
E2 Generator Profile End (required) None
E3 Director Profile Start (required) None
E4 Director Profile End (required) None
Feature DRILL CALL
Command DRL_CALL[NN=S, CP=I, XE=D, YE=D, ZE=D, TD=D]
Application Milling
Parameters
Parameter Description Default
NN Subroutine Name (required) None
CP Repeats 0
XE Insertion Point X (required) None
YE Insertion Point Y (required) None
ZE Insertion Point Z (required) None
TD Tip Depth Modal
Feature DYNAMIC VIEW
Command DYNAMIC_VIEW[XX=D, XY=D, XZ=D, YX=D, YY=D, YZ=D, OX=D, OY=D, OZ=D, LX=D, RX=D, TY=D, BY=D]
Application All
Parameters
Parameter Description Default
XX Rotation Plane X-Axis Vector X (required) None
XY Rotation Plane X-Axis Vector Y (required) None
XZ Rotation Plane X-Axis Vector Z (required) None
YX Rotation Plane Y-Axis Vector X (required) None
YY Rotation Plane Y-Axis Vector Y (required) None
YZ Rotation Plane Y-Axis Vector Z (required) None
OX Origin of View Plane X (required) None
OY Origin of View Plane Y (required) None
OZ Origin of View Plane Z (required) None
LX Location/Size of View Window in View Plane (Left) (required) None
RX Location/Size of View Window in View Plane (Right) (required) None
TY Location/Size of View Window in View Plane (Top) (required) None
BY Location/Size of View Window in View Plane (Bottom) (required) None
E [To Top]
Feature ELEMENT DATA
Command DUMP_LST[GP=I, OM=I, FN=S, OPEN=I]
Application All
Parameters
Parameter Description Default
GP What to Output
Values: 0 = Entire Part, 1 = Active Group
0
OM Output Method
Values: 0 = Printer, 1 = File
1
FN Filename to Output (when OM=1) None
OPEN Open Report File
Values: 0 = No, 1 = Open
0
Feature ELEMENT PICK
Command ELMT_GRP[AR=I, EL=I]
Application All
Parameters
Parameter Description Default
AR Add/Remove (required)
Values: 0 = Add, 1 = Remove
None
EL Element # to Add to Active Group (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature ELEMENT SEQUENCE
Command ELMT_SEQ[BA=I, EL=I, ME=I]
Application All
Parameters
Parameter Description Default
BA Before/After (required)
Values: 0 = Before, 1 = After
1
EL Element name or number (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
ME Match Element
Values: 0 = Off, 1 = On
0
Feature ELLIPSE
Command ELLIPSE[D1=D, D2=D, XC=D, YC=D, XS=D, YS=D, XE=D, YE=D, AS=D, AE=D, AN=D, DR=I, SS=I, SE=I, LV=D]
Application All
Parameters
Parameter Description Default
D1 1st Axis Length None
D2 2nd Axis Length None
XC Center X (Center Z in Turning) None
YC Center Y (Center D in Turning) None
XS Start Point X (Start Point Z in Turning) None
YS Start Point Y (Start Point D in Turning) None
XE End Point X (End Point Z in Turning) None
YE End Point Y (End Point Z in Turning) None
AS Start Angle None
AE End Angle None
AN Inclination Angle None
DR Ellipse Direction
Values: 0 = CW, 1 = CCW
0
SS Solution start
Values: 0 = +, 1 = -, 2 = N/A
2
SE Solution end
Values: 0 = +, 1 = -, 2 = N/A
2
LV Level Modal
En [To Top]
Feature ENUMERATE GROUP
Command ENUM_GRP[EN=S]
Notes Used as part of Process container regeneration, along with MOD_CONTEXT_OPEN and MOD_CONTEXT_CLOSE.
Application All
Parameters
Parameter Description Default
EN List of elements to enumerate or add to the context group. The List can be single elements (by number or by quoted name) or a range of elements.
Example: EN="1-6,11"
This would add elements 1 through 6 and element 11 to the context group.
NONE
Feature ENVELOPE
Command ENVELOPE[XS=D, YS=D, ZS=D, XE=D, YE=D, ZE=D]
Application All
Parameters
Parameter Description Default
XS X Start (required) None
YS Y Start (required) None
ZS Z Start (required) None
XE X End (required) None
YE Y End (required) None
ZE Z End (required) None
Ex [To Top]
Feature EXPLODE
Command EXPLODE[EX=I, TO=D]
Application All
Parameters
Parameter Description Default
EX Explode Level
Values: 0 = Lines, 1 = Arcs, 2 = Polylines
2
TO Tolerance 0.001
Feature EXTEND MESH
Command EXTEND[E1=I, E2=I, D1=D, D2=D, DS=D, DE=D, CM=I]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 Mesh Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Mesh End Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
D1 Along division start distance 0.0
D2 Along end 0.0
DS Across spacing start distance 0.0
DE Across end 0.0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
Feature EXTEND SURFACE
Command SRF_EXTEND[ES=I, LN=I, EN=I, ET=I, XS=D, YS=D, ZS=D, XE=D, YE=D, ZE=D]
Application FreeForm Machining
Parameters
Parameter Description Default
ES Element Number of Surface to Edit (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
LN Loop Number, relative to boundary ordering in ES (required) None
EN Edge Number, relative to boundary ordering in ES (required) None
ET Extend Type (required)
Values: 0 = G0, 1 = G1
None
XS Start/Mid Vector X 0.0
YS Start/Mid Vector Y 0.0
ZS Start/Mid Vector Z 0.0
XE End Vector X 0.0
YE End Vector Y 0.0
ZE End Vector Z 0.0
Feature EXTRACT
Command EXTRACT[ET=I, CE=I, BE=I, TE=I, DE=I, AP=I, KO=I, HS=I, OL=I]
Application All
Parameters
Parameter Description Default
ET Extract Type (required)
Values: 0 = Surfaces from Solids, 1 = Elements from Surfaces
1
CE Construction Geometry Elements
Values: 0 = No extract, 1 = Extract
0
BE Base Surface Edges
Values: 0 = No extract, 1 = Extract
0
TE Trimming Curve Elements
Values: 0 = No extract, 1 = Extract
0
DE Display Grid Elements
Values: 0 = No extract, 1 = Extract
0
AP Assign properties
Values: 0 = Original, 1 = Active properties, 2 = Parent surface properties
0
KO Keep Original Surface
Values: 0 = No (delete), 1 = Yes (keep the surface)
1
HS Hide Surface
Values: 0 = No, 1 = Hide
1
OL Hide on Layer (required if HS = 1)
Values: 1 - 9999
99
F [To Top]
Feature FACE
Command FACE[TY=I, EL=I, XS=D, YS=D, WC=D, FA=D, AN=D, DC=D, FL=D, DS=D, DE=D, AR=D, RS=I, AC=D, BC=D, RM=I, RT=D, IN=I, CC=I, CI=I, OP=I, EW=I, EP=I, RD=I, IP=I, IT=I, MB=I, MPX=D, MPY=D, MS=I, SWR=D, CS=I, SCR=D, SDWN=I, CO=I, AP=I, CT=I, GC=D]
Application Milling, Advanced Turning
Parameters
Parameter Description Default
TY Path Type
Values: 0 = Spiral, 1 = Zigzag, 2 = Linear, 3 = True Spiral, 4 = Morph
0
EL Boundary Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
XS User Start Point X None
YS User Start Point Y None
WC Width of Cut (required) None
FA Wall Allowance 0.0
AN Pass Angle 0.0
DC Depth of Cut (required) None
FL Floor Allowance 0.0
DS First Pass Level - Depth (required) None
DE Final Pass Level - Depth (required) None
AR Ramp Angle 90.0 (vertical)
RS Ramp From Start
Values: 0 = Off (use ramp angle), 1 = On (ramp from start point)
0
AC Corner Roll Angle 60.0
BC Boundary Clearance 0.0
RM Refine Curve Fit
Values: 0 = Off, 1 = On
0
RT Refine Curve Fit Tolerance 0.00005
IN Avoid Grouped Island
Values: 0 = Off, 1 = On
0
CC Climb Cut
Values: 0 = Conventional, 1 = Climb
0
CI Cut Inside Out
Values: 0 = Off (cut outside in), 1 = On
0
OP Overlap Pass Ends
Values: 0 = Off, 1 = On
0
EW Equal Width Passes
Values: 0 = Off, 1 = On
0
EP Equal Depth Passes
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels
Values: 0 = Off, 1 = On
0
IP Clean-up Pass
Values: 0 = None, 1 = First, 2 = Last
Modal
IT Island Pass
Values: 0 = Entire Level, 1 = Tops First, 2 = None, 3 = Tops Last
0
MB Morph Blend
Values: 0 = Inside, 1 = Outside, 2 = Both, 3 = None
0
MPX Morph Point X None
MPY Morph Point Y None
MS Smooth Path
Values: 0 = Off, 1 = Rough Only, 2 = Rough and Final
0
SWR Smooth Path Ratio 1.0
CS Smooth Connection
Values: 0 = Off, 1 = On
0
SCR Smooth Connection Ratio
Values: 2-6
3.0
SDWN Stay Down
Values: 0 = Off, 1 = On
0
CO Connect Passes
Values: 0 = Off, 1 = On
0
AP Alternate Passes
Values: 0 = Off, 1 = On
0
CT Connections
Values: 0 = Follow, 1 = Linear, 2 = Arc
0
GC Gap Closure 0.0
Feature FACET SOLID
Command FACET_SOLID[ST=D, NT=D]
Application All
Parameters
Parameter Description Default
ST Surface Tolerance MAX(GRP_DIAG()*.00015,.0001) - Inch
MAX(GRP_DIAG()*.00015,.0025) - Metric
NT Normal Tolerance 30
Feature FEED CHANGE
Notes Implemented as a custom macro function. See the FEEDCHG.MCL macro file in your SYSMCL directory.

To incorporate in your macro, use MAC_EXE[] to call the shipped macro.

Fi [To Top]
Feature FILTER
Command FILTER[PT=I, HL=I, LN=I, AR=I, PL=I, MN=1, SP=I, EL=I, HX=I, TX=I, PX=I, UC=I, SC=I, CO=I, DC=I, SF=I, HF=I, RG=I, TD=I, GV=I, LY=I, ST=I, TL=I, WP=I, LYS=S, STS=S, TLS=S, WPS=S, FT=I, FO=I]
Application All
Parameters
Parameter Description Default
PT Point Filtering
Values: 0 = Off, 1 = On
1
HL Hole Filtering
Values: 0 = Off, 1 = On
1
LN Line Filtering
Values: 0 = Off, 1 = On
1
AR Arc Filtering
Values: 0 = Off, 1 = On
1
PL Polyline Filtering
Values: 0 = Off, 1 = On
1
MN Markup Note Filtering
Values: 0 = Off, 1 = On
1
SP Spline Filtering
Values: 0 = Off, 1 = On
1
EL Ellipse Filtering
Values: 0 = Off, 1 = On
1
HX Helix Filtering
Values: 0 = Off, 1 = On
1
TX Text Filtering
Values: 0 = Off, 1 = On
1
PX 5X Polyline Filtering (Wire EDM only)
Values: 0 = Off, 1 = On
1
UC User command Filtering
Values: 0 = Off, 1 = On
1
SC Sub calls Filtering (not valid for Turning applications)
Values: 0 = Off, 1 = On
1
CO Container Filtering
Values: 0 = Off, 1 = On
1
DC Drill call Filtering (Milling applications)
Values: 0 = Off, 1 = On
1
SF Surface Filtering
Values: 0 = Off, 1 = On
1
HF Hole Feature Filtering (Milling applications)
Values: 0 = Off, 1 = On
1
RG Region Filtering (Milling applications)
Values: 0 = Off, 1 = On
1
TD Thread Filtering (Turning applications)
Values: 0 = Off, 1 = On
1
GV Groove Filtering (Turning applications)
Values: 0 = Off, 1 = On
1
LY Layer Filtering
Values: 0 = Off, 1 = On
0
ST Step Filtering
Values: 0 = Off, 1 = On
0
TL Tool Filtering
Values: 0 = Off, 1 = On
0
WP Workplane Filtering
Values: 0 = Off, 1 = On
0
LYS List of Layers to Filter None
STS List of Steps to filter None
TLS List of Tools to filter None
WPS List of Workplanes to Filter None
FT Entity Type Filtering (Milling applications)
Values: 0 = Off, 1 = Primary Path, 2 = Ramp, 3 = Fast Return
0
FO Override Type Filtering
For Mill/Turn Inch: 0 = Off, 1 = None, 2 = IPR, 3 = IPM, 4 = IPT, 5 = Factor
For Mill/Turn Metric: 0 = Off, 1 = None, 2 = mm/r, 3 = mm/min, 4 = mm/t, 5 = Factor
For Fabrication/Wire EDM: 0 = Off, 1 = None, 2 = Feed, 3 = Factor
0
Feature FILTER USE
Command FILTER_USE[ON=I]
Notes Toggles Group Pick Filtering on and off.
Application All
Parameters
Parameter Description Default
ON Use Filtering when Group Picking (required)
Values: 0 = Off, 1 = On
0
Feature FILE CLOSE (text file)
Command F_CLOSE[FN=S]
Notes Used to close text files, opened in the macro using the F_OPEN macro command.

Related to the other File Handling macro commands:

There is no User Interface for this macro command.

Application All
Parameters
Parameter Description Default
FN Path and Filename of Text File to close (required) None
Feature FILE DELETE
Command F_DELETE[FN=S]
Notes Used to delete files from your computer.

Related to the other File Handling macro commands:

There is no User Interface for this macro command.

Application All
Parameters
Parameter Description Default
FN Path and Filename of file to delete None
Feature FILE OPEN (text file)
Command F_OPEN[FN=S, TY=S]
Notes Used to open ASCII text files for reading or writing.

Related to the other File Handling macro commands:

There is no User Interface for this macro command.

Application All
Parameters
Parameter Description Default
FN Path and Filename of file to open None
TY Type of open
Values: W = Write, R = Read, A = Append

Use R to read content from an existing file.
Use W to write to a file. If the file you open already exists, any existing content will be lost.
Use A to append text to the end of an existing file.

None
Feature FILE READ (text file)
Command F_READ[FN=S, FMT=S, VR=S]
Name The Format String (FMT) describes how to parse each line of text read from the text file.

Description of Format String.

Format characters:

  • % = signals a variable type follows
  • %% = prints a % sign (escapes the % character)
  • ~ = do not interpret the next character, output as a literal
  • ~n = new line
  • ~t = tab character

Numerical formats:

  • D = decimal (suppresses trailing and leading zeros)
  • T = trailing zero (no decimal, suppress leading zeros)
  • L = leading zero (no decimal, suppress trailing zeros)
  • F = filled (no decimal, fill unfilled fields with zeros)
  • P = padded (decimal, suppress leading zeros)
  • E = filled (decimal, fill unfilled fields with zeros)
  • I = integer output

Numeric examples. All examples using the value: 10.625.

  • D3.4 = 10.625
  • T3.4 = 106250
  • L3.4 = 010625
  • F3.4 = 0106250
  • P3.4 = 10.6250
  • E3.4 = 010.6250
  • I = 11

String formats:

  • S = string
  • S# = S is the string type, # is a number.

    The # modifier provides the string width; allowed widths are 1 to 999 characters.

  • S-# = Same as above, the hyphen (-) signals left justification.

    Outputs the first width # of characters in the string.

Application All
Parameters
Parameter Description Default
FN Path and File of file to open (required) None
FMT Format String (required)
The format for each user variable (VR variable), required for each variable name specified. Uses same format as F_WRITE[].
None
VR Variable List (required)
The list of variable names to store the data read from the text file.
None

F_READ[FN="test.txt", FMT="%D2.3 %S-8 %I", VR="VAR1, VAR2, VAR3"]

If the contents of "test.txt" are:

10.625 Diameter 10
19.350 Radius	20

The F_READ[] command would read the first line of text and parse into the three variables. VAR1 is a decimal with the format D2.3, the second is a 8 character length string, and finally an integer. So, after reading the first line, the three variables would contain:

#VAR1 = 10.625
#VAR2 = "Diameter"
#VAR3 = 10

After reading the 2nd line the three variables would contain:

#VAR1 = 19.350
#VAR2 = "Radius  "
#VAR3 = 20

Notice VAR2 has some padding; this is because of the 8 character width modifier.

All variables used must exist and be initialized.

Feature FILE WRITE (text file)
Command F_WRITE[FN=S, FMT=S, VR=S]
Notes The Format String (FMT) describes how to format each variable for output. See F_READ[] for a description of the format string.
Application All
Parameters
Parameter Description Default
FN Path and File of file to write (required) None
FMT Format String (required)
The format for each user variable (VR variable), required for each variable name specified. Uses same format as F_READ[].
None
VR Variable List (required)
The list of variable names containing the information to be written.
None

If you wanted to output the contents of three variables:

DECIMAL#VAR1 = 3.141
INTEGER:#VAR2 = 11
STRING:#VAR3 = "Diameter"

The following command would output them:

F_WRITE[FN="test.txt", FMT="%D2.3 %S-8 %I", VR="VAR1, VAR3, VAR2"]

The data written to the text file (test.txt) would be:

3.131 Diameter 11

You can also output text not related specifically to variables. Example:

F_WRITE[FN="test.txt", FMT="The Decimal is %D2.3. The Integer is %I and the String is: %S", VR="VAR1, VAR2, VAR3"]

This would write the following to the text file:

The Decimal is 3.141. The Integer is 11 and the String is: Diameter

Feature FILE PATH OVERRIDE
Command FPATH_SET[IN=S, FP=S]
Notes Temporarily overrides the default paths from the application INI files. The paths read from the [Paths] section of the application INI can be overridden with this command. There is no UI for this option.

This function is meant to update the path, not a path and filename. If you append a filename to the string provided with the FP parameter, the filename will be treated as part of the path. Additionally, when the INI is updated the function will add a closing backslash to the path, if one is not already provided.

This should not be done, unless you are very sure of what and why you are attempting to do this.

Application All
Parameters
Parameter Description Default
IN The [Paths] section to override (required)
Review your application.ini to see what paths can be overridden. Example include: def, smf, fnt.
None
FP New path to use (required) None
Fl [To Top]
Feature FLIP FOREGROUND / BACKGROUND COLORS
Command FLIP_FORE_BACK_COLORS[]
Notes Same as Display Modes - Invert Display button; flips the graphics/list views foreground and background colors. There are no macro parameters for this command.
Application All
Feature FLOWLINE
Command FLOWLINE[EL=S, PD=I, SP=I, SV=D, DI=I, DV=D, OA=D, OF=I]
Application FreeForm Machining
Parameters
Parameter Description Default
EL Element Number of the Surface (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
PD Path Direction
Values: 0 = U direction, 1 = V direction
0
SP Spacing Type
Values: 0 = Distance, 1 = Count, 2 = Mid-Tol
0
SV Spacing Value 0.0
DI Divisions Type
Values: 0 = Distance, 1 = Count, 2 = Mid-Tol
0
DV Divisions Value None
OA Offset (Finish) Amount None
OF Offset Direction
Values: 0 = Positive, 1 = Negative
0
Feature FOLD
Command FOLD[BE=I, FE=I, FL=I, BS=I, AN=D, DI=I, ML=I, TH=D, IR=D, KF=D, HC=D, MT=D, AD=D, MO=I]
Application Advanced Fabrication
Parameters
Parameter Description Default
BE Base Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
FE Face Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
FL Fold Line Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
-1
BS Sheet Side
Values: 0 = Inside, 1 = Middle, 2 = Outside
1
AN Bend Angle (required) 0.0
DI Bend Direction
Values: 0 = Negative, 1 = Positive
1
ML Mold Lines
Values: 0 = Off, 1 = 0
0
TH Thickness 0.0
IR Inside Radius 0.0
KF K Factor 0.0
HC Hem Compensation 0.0
MT Multiply 1.0
AD Add 0.0
MO Mode
Values: 0 = Fold, 1 = Flatten
0
Feature FORM PATCH
Command FORM_PATCH[E1=I, E2=I, E3=I, E4=I, PD=I, SP=I, SV=D, ZT=D, DI=I, DV=D, OF=I, OA=D, CM=I, GC=I]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 1st Director Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 1st Director End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 2nd Director Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E4 2nd Director End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PD Path Direction
Values: 0 = Cross, 1 = Along, 2 = Planar
0
SP Spacing
Values: 0 = Distance, 1 = Count, 2 = Cusp Hgt
0
SV Spc Val - Spacing value (required) None
ZT Planar Z 0.0
DI Division
Values: 0 = Distance, 1 = Count, 2 = Mid-Tol, 3 = In-Tol, 4 = Out-Tol
0
DV Div Val - Division value (required) None
OF Offset
Values: 0 = Positive, 1 = Negative, 2 = 0
2
OA Finish Allowance 0.0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
GC Gouge Correction
Values: 0 = Off, 1 = On
0
Feature FROM MESH
Command FROM_MESH[ES=I, EE=I]
Application FreeForm Machining
Parameters
Parameter Description Default
ES Mesh Starting Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
EE Mesh Ending Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature FULL VIEW
Command FULL[]
Notes Adjust view to show all visible geometry. There are no macro parameters for this command.
Application All
Feature FULL ENVELOPE
Command FULL_ENVELOPE[]
Notes Sets the base envelope extents to the current model's geometry extents. Macro command for the Change View Envelope - Full Envelope button. There are no macro parameters for this command.
Application All
Feature FULL GROUP
Command FULL_GROUP[]
Notes Sets the base envelope extents to the active group's geometry extents. There are no macro parameters for this command.
Application All
G [To Top]
Feature GENERATE MESH
Command GEN_MESH[EL=I, PD=I, SP=I, SV=D, DI=I, DV=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
Element of the Surface (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PD Path Direction
Values: 0 = U direction, 1 = V direction
0
SP Spacing Type
Values: 0 = Distance, 1 = Count, 2 = Mid-Tol
0
SV Spacing Value (required) None
DI Division Type
Values: 0 = Distance, 1 = Count, 2 = Mid-Tol
0
DV Division Value (required) None
Feature GET GROUP
Command GET_GRP[GN=S, AR=I]
Notes Adds or removes geometry from the active group, using elements in the named group.
Application All
Parameters
Parameter Description Default
GN Group Name (required) None
AR Add/Remove
Values: 0 = Add, 1 = Remove
None
Feature GET VIEW
Command GET_VIEW[VN=S]
Application All
Parameters
Parameter Description Default
VN View Name (required) None
Gr [To Top]
Feature GRAPHICS OFF
Command GRAPHICS_OFF[]
Notes Turns off updates to the graphic and list views. Used in combination with GRAPHICS_ON[] to speed up long-processing macros and operations. There are no macro parameters for this command.
Application All
Feature GRAPHICS ON
Command GRAPHICS_ON[]
Notes Turns on updates to the graphic and list views. Used in combination with GRAPHICS_OFF[] to speed up long-processing macros and operations. There are no macro parameters for this command.
Application All
Feature GRID
Notes Implemented as a custom macro function. See the GRID.MCL macro file in your SYSMCL directory.

To incorporate in your macro, use Macro Record and paste recorded macro or use MAC_EXE[] to call the shipped macro.

Application All
Feature GROOVE
Command GROOVE[FX=D, FY=D, DW=D, DD=D, DA=D, DM=D, P1=I, P2=I, P3=I, P4=I, R1=D, R2=D, R3=D, R4=D, TS=I, OA=I]
Application Turning
Parameters
Parameter Description Default
FX Anchor Point X (required) None
FY Anchor Point Y (required) None
DW Groove Width (required) None
DD Groove Depth (required) None
DA Finish Allowance 0.0
DM Max Width of Cut JOS(TL_WID)
P1 Corner T1 feature
P1, P2, P3, P4 = 0 = Sharp
P1, P2, P3, P4 = 1 = Radius
P1, P2, P3, P4 = 2 = Chamfer
0
P2 Corner T2 feature 0
P3 Corner B1 feature 0
P4 Corner B2 feature 0
R1 Corner T1 size 0.0
R2 Corner T2 size 0.0
R3 Corner B1 size 0.0
R4 Corner B2 size 0.0
TS Finish to Size
Values: 0 = Off, 1 = On
0
OA Orientation Angle
Values: 0, 90, 180, 270
90
Feature GROOVE ROUGH
Command TGROOVE[PS=I, PE=I, MM=I, MS=I, ME=I, ZS=D, XS=D, DP=D, XF=D, ZF=D, PM=I, RM=I, PD=D, AP=I, RP=I, LA=D, TA=D, LD=D, BP=I, TF=I, TT=D, TP=I, LY=I, RS=I, CC=I, FS=I, BD=D]
Application Turning
Parameters
Parameter Description Default
PS Part Profile Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PE Part Profile End Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
MM Material Defined By (required)
Values: 0 = Material profile, 1 = Material point, 2 = Part profile
None
MS Material Profile Start Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
ME Material Profile End Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
ZS Material Point Z None
XS Material Point X None
DP Pass Width (required) None
XF X Finish Allowance (required) None
ZF Z Finish Allowance (required) None
PM Pecking Method (required)
Values: 0 = None, 1 = Depth first, 2 = Width first
None
RM Retract Method (required)
Values: 0 = Full, 1 = Partial
None
PD Pecking Distance (required) None
AP Adjust Passes (required)
Values: 0 = Off, 1 = On
None
RP Reverse Progression
Values: 0 = Off, 1 = On
0
LA Effective Leading Edge Angle (required) None
TA Effective Trailing Edge Angle (required) None
LD Infeed Distance (required) None
BP Bidirectional Passes (required)
Values: 0 = Off, 1 = On
None
TF Refine Curve Fit
Values: 0 = Off, 1 = On
0
TT Refine Curve Fit Tolerance 0.0
TP Create TPP - Theoretical Part Profile (required)
Values: 0 = Off, 1 = On
None
LY TPP Layer (required) None
RS Return to Start
Values: 0 = Off, 1 = On
0
CC Cleanup Cusps
Values: 0 = Off, 1 = On
0
FS Finish To Size
Values: 0 = Off, 1 = On
0
BD Back-off Distance 0.0
Feature GROUP ADJACENT SURFACES
Command GRP_ADJACENT_SURFACES[]
Notes Finds and selects surfaces adjacent to the surfaces in the active group.

There are no macro parameters for this command.

Application All
Feature GROUP TANGENT SURFACES
Command GRP_TANGENT_SURFACES[]
Notes Finds and selects surfaces tangent to the surfaces in the active group.

There are no macro parameters for this command.

Application All
Feature GROUP ALL TANGENT SURFACES
Command GRP_ALL_TANGENT_SURFACES[]
Notes Finds and selects all surfaces tangent to the surfaces in the active group, adds them to the active group and then repeats the process until all tangential surfaces are selected.

There are no macro parameters for this command.

Application All
Feature GROUP ARCS
Command ARC_GRP[AR=I, FA=I, NR=D, XR=D]
Application All
Parameters
Parameter Description Default
AR Add/Remove
Values: 0 = Add, 1 = Remove
None
FA Full Arc
Values: 0 = All arcs, 1 = Full arcs only, 2 = Partial arcs only
0
NR Minimum Radius
Value: must be less than XR
0.0
XR Maximum Radius
Value: must be larger than NR
0.0
Feature GROUP BLEND
Command GRP_BLEND[RA=D, RO=D, RC=D]
Application All
Parameters
Parameter Description Default
RA Inside Radius None
RO Outside Radius None
RC Change Radius None
Feature GROUP CHAIN
Command GRP_CHAIN[PJ=I]
Application All
Parameters
Parameter Description Default
PJ Polyline Join
Values: 0 = Chain, 1 = PolyJoin, 2 = Both
0
Feature GROUP DELETE
Command GRP_DELETE[]
Notes Delete the elements currently in the active group. There are no macro parameters for this command.
Application All
Feature GROUP DIRECTION
Command GRP_DIR[OP=I, AL=I]
Application All
Parameters
Parameter Description Default
OP Group Direction (required)
Values: 0 = Clockwise, 1 = Counter-clockwise
0
AL Alternate Nested (required)
Values: 0 = Off, 1 = On
0
Feature GROUP FILTER ADD
Command GRP_FILT_ADD[]
Notes Select all elements which match the current filter. Then add to active group. There are no macro parameters for this command.
Application All
Feature GROUP FILTER REMOVE
Command GRP_FILT_REMOVE[]
Notes Select all elements, in the active group, which match the current filter. Then remove them from the active group. There are no macro parameters for this command.
Application All
Feature GROUP INCLUDE SPLIT SURFACES
Command GRP_INCLUDE_SPLIT_SURFACES[ISS=I]
Application All
Parameters
Parameter Description Default
ISS Include Split Surfaces Option Toggle (required)
Values: 0 = Off, 1 = On
0
Feature GROUP POCKET
Command GRP_POCK[TY=I, WC=D, FA=D, AN=D, DC=D, FL=D, AR=D, IGN=S, PGN=S, AC=D, RM=I, RT=D, CC=I, CI=I, OP=I, EW=I, EP=I, RD=I, IP=I, SDWN=I, IT=I, MB=I, MS=I, SWR=D, CS=I, SCR=D, CO=I, AP=I]
Application Milling, Advanced Turning
Parameters
Parameter Description Default
TY Path Type
Values: 0 = Spiral, 1 = Zigzag, 2 = Linear, 3 = True Spiral, 4 = Morph, 5 = Part Offset
0
WC Width of Cut (required) None
FA Wall Allowance 0.0
AN Pass Angle 0.0
DC Depth of Cut (required) None
FL Floor Allowance 0.0
AR Ramp Angle 90.0 (vertical)
IGN Island Group Name None
PGN Pocket Group Name Active
AC Corner Roll Angle 60.0
RM Refine Curve Fit
Values: 0 = Off, 1 = On
0
RT Refine Curve Fit Tolerance 0.00005
CC Climb Cut
Values: 0 = Conventional, 1 = Climb
0
CI Cut Inside Out
Values: 0 = Off (cut outside in), 1 = On
0
OP Overlap Pass Ends
Values: 0 = Off, 1 = On
0
EW Equal Width Passes
Values: 0 = Off, 1 = On
0
EP Equal Depth Passes
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels
Values: 0 = Off, 1 = On
0
IP Clean-up Pass
Values: 0 = None, 1 = First, 2 = Last
0
SDWN Stay Down
Values: 0 = Off, 1 = On
0
IT Island Pass
Values: 0 = Entire Level, 1 = Tops First, 2 = None, 3 = Tops Last
0
MB Morph Blend
Values: 0 = Inside, 1 = Outside, 2 = Both, 3 = None
3
MS Smooth Path
Values: 0 = Off, 1 = Rough Only, 2 = Rough and Final
0
SWR Smooth Path Ratio 1.0
CS Smooth Connection
Values: 0 = Off, 1 = On
0
SCR Smooth Connection Ratio
Values: 2-6
3.0
CO Connect Passes
Values: 0 = Off, 1 = On
0
AP Alternate Passes
Values: 0 = Off, 1 = On
0
Feature GROUP POLYARC FIT
Command GROUP_POLYARC_FIT[TO=D, SA=D, LL=D, KP=I, MP=I]
Application All
Parameters
Parameter Description Default
TO Fit Tolerance (required) None
SA Sharp Angle (required) None
LL Long Line (required) None
KP Keep Original Code (required)
Values: 0 = Remove original, 1 = Keep original
None
MP Match Properties (required)
Values: 0 = Use active properties, 1 = use polyline properties
None
Feature GROUP REVERSE
Command GRP_REVERSE[RP=I]
Application All
Parameters
Parameter Description Default
RP Reverse Profile
Values: 0 = Order and Direction, 1 = Direction Only, 2 = Order Only
0
Feature GROUP TRIM
Command GRP_TRIM[EL=I, S1=I, TS=I, TY=I, TO=D]
Application All
Parameters
Parameter Description Default
EL Element in Trimming Profile (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S1 Keep Side (required)
Values: 0 = Right, 1 = Left
None
TS Trim/Split
Values: 0 = Trim, 1 = Split
1
TY Type
Values: 0 = 2-D, 1 = 3-D
1
TO Intersect Tolerance 0.1
Feature GROUP WALL
Command GRP_WALL[SD=I, DS=D, ME=I, RP=I, LR=I, TA=I, TO=D, AN=D, RS=I, RO=I]
Application All
Parameters
Parameter Description Default
SD Side (required) None
DS Distance (required) None
ME Match Element's Properties
Values: 0 = No, 1 = Yes
0
RP Repeat
Values: 1 - 999
1
LR Loop Removal (milling only)
Values: 0 = No, 1 = Yes
0
TA Use Tolerance (milling only)
Values: 0 = Off, 1 = On
0
TO Tolerance Amount (milling only) 0.00005
AN Corner Roll Angle
Values: 5 - 180
60
RS Roll Short Seq
Values: 0 = Off, 1 = On
1
RO Reverse Order
Values: 0 = Off, 1 = On
1
H [To Top]
Feature HALT
Command HALT
Notes HALT immediately ends macro execution - once encountered the macro immediately stops running.

It does not have any macro parameters. It also does not use the square brackets ([]).

Example:

IF (#SERIOUS_ERR = 1)
	HALT
#ENDIF

This command is primarily used in debugging macros, as it allows you to easily stop the running macro, so that you can check it's progress, information saved, and so forth.

Application All
Feature HELIX
Command HELIX[DR=I, XC=D, YC=D, XS=D, YS=D, ZS=D, AS=D, RS=D, XE=D, YE=D, ZE=D, AE=D, RE=D, DS=D, PI=D, FT=I, AT=D, LV=D]
Application All
Parameters
Parameter Description Default
DR Direction
Values: 0 = CW, 1 = CCW
0
XC Center Axis X (Z for Turning) None
YC Center Axis Y (D for Turning) None
XS Start X (Z for Turning) None
YS Start Y (D for Turning) None
ZS Start Z (Y for Turning) None
AS Start Angle None
RS Start Radius None
XE End X (Z for Turning) None
YE End Y (D for Turning) None
ZE End Z (Y for Turning) None
AE End Angle None
RE End Radius None
DS Axis Length None
PI Pitch None
FT Full Turns None
AT Total Angle None
LV Level Modal
Hi [To Top]
Feature HIDE LAYER
Command HIDE_LAYER[LY=I]
Application All
Parameters
Parameter Description Default
LY Layer Number (required) None
Feature HIDE PLANE
Command HIDE_PLANE[WP=S]
Notes Hides geometry associated with a given workplane.
Application All
Parameters
Parameter Description Default
WP Workplane Name (required) None
Feature HIDE SELECTED
Command HIDE_SELECTED[]
Notes Hide the currently grouped elements. There are no macro parameters for this command.
Application All
Feature HIDE STEP
Command HIDE_STEP[ST=I]
Application All
Parameters
Parameter Description Default
ST Step Number (required) None
Feature HIDE TOOL
Command HIDE_TOOL[TL=I|TT=S]
Application All
Parameters
Parameter Description Default
TT Tool Turret:Tool Number (required)
TT is only used for Turning applications.
NONE
TL Tool Number (required)
TL is used for all, except Turning applications.
Feature HIDE UNSELECTED
Command HIDE_UNSELECTED[]
Notes Hide all geometry that is currently not selected. There are no macro parameters for this command.
Application All
Feature HIDE_ALL_LAYERS
Command HIDE_ALL_LAYERS[]
Notes Hides all layers in the current model file.

No parameters for this command. Available in user interface by right-clicking on the CAD Geometry top-level element in the CAD - Process Plan list view list.

Feature HIDE_ALL_STEPS
Command HIDE_ALL_STEPS[]
Notes Hides all steps in the current model file.

No parameters for this command. Available in user interface by right-clicking on the CAM Process Plan top-level element in the CAD - Process Plan list view list.

Ho [To Top]
Feature HOLE
Command HOLE[XE=D, YE=D, XS=D, YS=D, AN=D, DS=D, LV=D, SE=I, TD=D]
Notes For Fabrication see FAB_HOLE.
Application Milling, Turning, Wire EDM
Parameters
Parameter Description Default
XE Hole Point X (Hole Point Z for Turning) None
YE Hole Point Y (Hole Point D for Turning) None
XS Anchor Point X (Anchor Point Z for Turning) None
YS Anchor Point Y (Anchor Point D for Turning) None
AN Angle None
DS Distance None
LV Level Modal
SE End Solution Designator
Values: 0 = +, 1 = -, 2 = N/A
2
TD Tip Depth None
Feature HOLE (Advanced Fabrication only)
Command FAB_HOLE[XE=D, YE=D, XS=D, YS=D, AN=D, DS=D, LV=D, SE=I, AE=D, RI=I]
Notes For other applications, see the standard HOLE command.
Application Fabrication
Parameters
Parameter Description Default
XE Hole Point X None
YE Hole Point Y None
XS Anchor Point X None
YS Anchor Point Y None
AN Angle None
DS Distance None
LV Level Modal
SE End Solution Designator
Values: 0 = +, 1 = -, 2 = N/A
2
AE Tool Angle None
RI Radial Index
Values: 0 = Off, 1 = On
0
Feature HOLE FEATURE PROCESS
Command HOLE_FEATURE_PROCESS[GRN=S, SLM=I, DM=I, DT=I, RO=I, SL=D, SA=D, DD=D, DA=D, TC=D, FT=D]
Application Milling, Advanced Turning
Parameters
Parameter Description Default
GRN Hole Feature Group Name None
SLM Start Level Method (required)
Values: 0 = From Element, 1 = Specify
None
DM Depth Method (required)
Values: 0 = From Element, 1 = Specify
0
DT Depth Type (required)
Values: 0 = Tip Depth, 1 = Full Depth, 2 = Spot Diameter
0
RO Reverse Order (required)
Values: 0 = Off, 1 = On
0
SL Start Level 0.0
SA +/- Start Adjustment 0.0
DD Depth/Diam 0.0
DA +/- Depth Adjustment 0.0
TC Thru Clearance 0.0
FT Fit Tolerance 0.00005
Feature HOLE FROM CURVES
Command HOLE_CRV[MD=I, EL=I, DT=I, DP=D, TO=D, DI=D, RL=I, MP=I, IP=I, KO=I]
Application Milling, Turning, Wire EDM
Parameters
Parameter Description Default
MD Match Diameter (required)
Values: 0 = No, 1 = By Example, 2 = By Value
None
EL Element to Match (when MD=1)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
DT Depth Type (required)
Values: 0 = Tip, 1 = Full, 2 = Spot
None
DP Depth (required) None
TO Match Tolerance None
DI Diameter None
RL Restrict to Level
Values: 0 = Off, 1 = On
0
MP Match Properties
Values: 0 = Off, 1 = On
0
IP Include Partial Holes
Values: 0 = Off, 1 = On
0
KO Keep Original
Values: 0 = Off, 1 = On
1
Feature HOLE FROM SOLID (Group)
Command HOLE_SURF[WS=I, SC=I, MD=I, DI=D, TO=D]
Application All
Parameters
Parameter Description Default
WS Use Surface Side
Values: 0 = No, 1 = Yes
1
SC Include Partial Holes
0 = No, 1 = Yes
0
MD Match Diameter (required)
0 = No, 1 = By Example, 2 = By Value
None
DI Diameter 1.0
TO Match Tolerance 0.001
Feature HOLE FROM SOLID (Multiple)
Command HOLE_ALL[SE=I, WS=I, MA=I, SC=I, MD=I, HE=I, DI=D, TO=D, AL=I]
Application All
Parameters
Parameter Description Default
SE Surface on Solid Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
WS Entire Solid
Values: 0 = No, 1 = Yes
1
MA Match Z Axis
Values: 0 = No, 1 = Yes
1
SC Include Partial Holes
Values: 0 = No, 1 = Yes
0
MD Match Diameter (required)
Values: 0 = No, 1 = By example, 2 = By value
None
HE Cylindrical Surface Element (required if MD = 1)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
DI Diameter (must be positive value) 1.0
TO Match Diameter Tolerance 0.001
AL Align
Values: 0 = None, 1 = X Axis, 2 = Y Axis
0
Feature HOLE FROM SOLID (Single)
Command HOLE_ONE[SE=I, HI=I, FL=I, AL=I]
Notes This macro command would be very difficult to use by writing it into the macro manually. It is best generated by recording a macro while creating the hole. Since it uses an index value to find which hole on the selected surface to create, it may not give the correct results if the selected surface is changed. Use Macro - Record and run the From Solid - Hole panel to record this macro command.
Application All
Parameters
Parameter Description Default
SE Surface on Solid Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
HI Hole Index (required)
If selected surface has multiple holes, the index for the hole to be used.
None
FL Flip Direction
Values: 0 = No, 1 = Yes
0
AL Align
Values: 0 = None, 1 = X Axis, 2 = Y Axis
0
Feature HOLE PATTERN
Command CIRC_HOLE_PATT[XC=D, YC=D, LV=D, RA=D, SA=D, IA=D, PD=I, NH=I, BA=D, TD=D]
Application Milling, Advanced Turning
Parameters
Parameter Description Default
XC Center Point X (required) None
YC Center Point Y (required) None
LV Center Point Z
Optional value, will use Insert Bar Z level. Any Z Level entered will update the Insert Bar Level to match.
Modal
RA Radius (required)
Must be a positive value.
None
SA Start Angle (required)
Based on active local workplane X-axis.
None
IA Increment Angle (required)
Positive non-zero value.
None
PD Pattern Direction (required)
Values: 0 = CW, 1 = CCW
None
NH Number of Holes (required)
Must a positive integer value.
None
BA Hole Axis Angle - the B-Axis (required)
A value of Zero (0) is equivalent to creating a Bolt-Hole Circle.
None
TD Tip Depth (required)
Must be a positive value.
None
Feature HOT SAVE
Command HOTSAVE[FN=S]
Application All
Parameters
Parameter Description Default
FN Path and Filename for Save (required) None
I [To Top]
Feature INCREMENT
Command INCREMENT[DS=D, AN=D, SP=D, AP=D, SZ=I, SS=I]
Application All
Parameters
Parameter Description Default
DS Linear Increment (distance) None
AN Angular Increment None
SP Element/Group Pick Radius None
AP Element Point/Value Snap Radius None
SZ Snap Z
Values: 0 = Off, 1 = On
None
SS Project Free Coordinates to Surface
Values: 0 = Off, 1 = On
None
Feature INSERT INTO CONTAINER
Command INSERT_CONTAINER[CO=I]
Application All
Parameters
Parameter Description Default
CO Insert into Container (required)
Values: 0 = No, 1 = Yes
None
Feature INTERSECT MESH
Command INTERSECT[TY=I, E1=I, E2=I, SD=I, OA=D, KP=I, VT=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
TY Intersect To
Values: 0 = Plane, 1 = Cone, 2 = Sphere, 3 = Mesh
3
E1 Generator/Mesh Start (required) None
E2 Director/Mesh End (required) None
SD Keep Side (required)
Values: 0 = Positive, 1 = Negative
None
OA Offset Amount 0.0
KP Keep Pieces
Values: 0 = All, 1 = First, 2 = Last
0
VT Virtual mesh tolerance Modal
Feature INTERSECT POINT
Command INTPT[E1=I, E2=I]
Notes Create a hole point at the location where elements E1 and E2 intersect.
Application All
Parameters
Parameter Description Default
E1 Element 1 (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Element 2 (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature INVERT SELECTION
Command INVERT_SELECTION[]
Notes Inverts the current active group. Selected items are deselected and previously non-selected items are added to the active selection. There are no macro parameters for this command.
Application All
Feature INVERT VISIBILITY
Command INVERT_VISIBILITY[]
Notes Inverts the hidden status of elements. Hidden elements are displayed and previously displayed elements are hidden. There are no macro parameters for this command.
Application All
J [To Top]
Feature JOB PLAN (LOAD JOB FILE)
Command JOBPLN[FN=S, JT=I]
Notes JT is ignored in .jsf mode and defaults to 0 in .jof mode.
Application All
Parameters
Parameter Description Default
FN Path and Filename of Job File to Read (required) None
JT Job Type
0 = .JSF (convert to .JOF), 1 = .JOF
0
Feature SAVE JOB
Command JOBSAVE[FN=S]
Notes Save the current Job without also saving the Process Model.
Application All
Parameters
Parameter Description Default
FN Path and Filename for Save (required) None
Feature JOS: CLOSE CONTEXT
Command JOS_CONTEXT_CLOSE[]
Notes Closes the JOS Data Context, opened by a call to one of the three JOS Context open calls: JOS_CONTEXT_OPEN, JOS_CONTEXT_DUP, or JOS_CONTEXT_NEW. This command must be paired with one of these calls.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

There are no macro parameters for this command.

Application All
Feature JOS: DUPLICATE CONTEXT
Command JOS_CONTEXT_DUP[BASEITEM=I, USERNAME=S]
Notes Opens a JOS Context for editing, by duplicating an existing Step or Tool. Must be paired with a JOS_CONTEXT_CLOSE command.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
BASEITEM Basic Item to be Duplicated (required)
Values: 1 = Step, 2 = Tool
None
USERNAME Name of the Item to be Duplicated (required)
Values: Step or Tool Number to Duplicate
None
Feature JOS: DUPLICATE ITEM
Command JOS_ITEM_DUPLICATE[BASEITEM=I, USERNAME=S]
Notes Creates a new item, in open Context, by duplicating an existing item. The current item, of specified type, is replaced in the Context.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
BASEITEM Base Item to Duplicate (required)
Values: 2 = Tool
None
USERNAME Name of Item (required)
Values: Tool number to be duplicated
None
Feature JOS: EDIT FIELD
Command JOS_FIELD_EDIT[FLDNAME=S, EXPR=S]
Notes Changes a JOS value. This must be within paired calls to one of the three JOS Context Open macro commands: JOS_CONTEXT_OPEN, JOS_CONTEXT_DUP, or JOS_CONTEXT_NEW and the JOS Context close command: JOS_CONTEXT_CLOSE. The field edit will not be saved, unless followed by a JOS_CHANGES_PROMOTE command, within the same JOS Context before the Context is closed.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

For a list of possible JOS Data Tags, see Job Operations Setup Data Tags

Application All
Parameters
Parameter Description Default
FLDNAME JOS Data Tag to be Changed (required) None
EXPR New Expression to use in Data Tag (required) None
Feature JOS: EDIT ITEM
Command JOS_ITEM_EDIT[BASEITEM=I, USERNAME=S]
Notes Brings an item into the JOS Context for editing, replacing the currently active item in the structure.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
BASEITEM Item to be Edited (required)
Values: 2 = Tool
None
USERNAME Name of the Item to be Edited (required) None
Feature JOS: NEW CONTEXT
Command JOS_CONTEXT_NEW[BASEITEM=I, NEWSNCS=I, USERNAME=S]
Notes Opens a JOS Context for editing a new item, of specified type. Must be paired with a JOS_CONTEXT_CLOSE command.

The NEWSNCS parameter is looking for a Section Number to use. Section numbers are an organized tree of data. Sometimes referred to as the Global Specification Shelf/Notebook/Chapter/Section. See JOS Section Numbers topic for further information.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
BASEITEM Item to be Created (required)
Values: 1 = Step, 2 = Tool
None
NEWSNCS Section Number of the New Item (required)
Values: For Steps this will be an Op Section number (generally 1030000 - 1039999 range).
For Tools, a Tool Assembly Section number (generally 2410000 - 2499999).
None
USERNAME Name of Item, after which the new item will be inserted. If this is empty or parameter not included, new item will be added to end of list. Provide the Step or Tool number. None
Feature JOS: NEW ITEM
Command JOS_ITEM_NEW[BASEITEM=I, NEWSNCS=I]
Notes Creates a new item, in the currently open context.

The NEWSNCS parameter is looking for a Section Number to use. Section numbers are an organized tree of data. Sometimes referred to as the Global Specification Shelf/Notebook/Chapter/Section. See JOS Section Numbers topic for further information.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
BASEITEM Item to be Created (required)
Values: 2 = Tool, 8 = Operation
None
NEWSNCS Section Number of the New Item (required)
Values: For Steps this will be an Op Section number (generally 1030000 - 1039999 range).
For Tools, a Tool Assembly Section number (generally 2410000 - 2499999).
None
Feature JOS: OPEN CONTEXT
Command JOS_CONTEXT_OPEN[BASEITEM=I, USERNAME=S|I]
Notes Opens a JOS Context for editing. Must be paired with a JOS_CONTEXT_CLOSE command.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
BASEITEM Item to Open (required)
Values: 1 = Step, 2 = Tool, 16 = Job Information
None
USERNAME Name of item to Open (required)
Values: Step Number, Tool Number, or empty string for Job Information. This parameter can either be a string or an integer.
None
Feature JOS: PROMOTE CHANGES
Command JOS_CHANGES_PROMOTE[]
Notes Commits all active changes in a JOS Context. This must be within paired calls to one of the three JOS context open macros: JOS_CONTEXT_OPEN, JOS_CONTEXT_DUP, or JOS_CONTEXT_NEW and the JOS context close call: JOS_CONTEXT_CLOSE.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

There are no macro parameters for this command.

Application All
Feature JOS: CHANGE ITEM
Command JOS_CHANGE_ITEM[BASEITEM=I, NEWSNCS=I]
Notes Changes the Tool Type for a given Step or Operation.

The NEWSNCS parameter is looking for a Section Number to use. Section numbers are an organized tree of data. Sometimes referred to as the Global Specification Shelf/Notebook/Chapter/Section. See JOS Section Numbers topic for further information.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
BASEITEM Item to Change (required)
Values: 2 = Tool (assignment)
None
NEWSNCS Section Number of item to Create (required)
Values: For Steps this will be an Op Section number (generally 1030000 - 1039999 range).
For Tools, a Tool Assembly Section number (generally 2410000 - 2499999).
None
Feature JOS: COPY ITEM
Command JOS_COPY_ITEM[BASEITEM=I, USERNAME=S]
Notes Copies the parameters of a Step or Tool, from the current job, to the active Step or Tool.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
BASEITEM Type of item to update (required)
Values: 1 = Step, 2 = Tool (assignment), 4 = Tool
None
USERNAME Specifies item to copy (required) None
Feature JOB VAR: APPLY
Command JOS_JVAR_APPLY[]
Notes Applies the Job Variable changes to the current JOS context.

The JOS_VAR_command macro commands work with in active JOS Context. Before adding or removing Job Variables, in macro, you must first open a JOS context using JOS_CONTEXT_OPEN.

When you have finished making changes, apply the changes using the JOS_CHANGED_PROMOTE command and then close the context with JOS_CONTEXT_CLOSE.

It would be helpful to first use Macro - Record and record a short macro using the commands you wish to program. Then review the recorded macro to see how the Context is used.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

There are no macro parameters for this command.

Application All
Feature JOB VAR: CLEAR ALL VARIABLES
Command JOS_JVAR_CLEAR[]
Notes Clears all current Job Variable from the Job Variables list.

The JOS_VAR_command macro commands work with in active JOS Context. Before adding or removing Job Variables, in macro, you must first open a JOS context using JOS_CONTEXT_OPEN.

When you have finished making changes, apply the changes using the JOS_CHANGED_PROMOTE command and then close the context with JOS_CONTEXT_CLOSE.

It would be helpful to first use Macro - Record and record a short macro using the commands you wish to program. Then review the recorded macro to see how the Context is used.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

There are no macro parameters for this command.

Application All
Feature JOB VAR: REMOVE SINGLE VARIABLE
Command JOS_JVAR_REMOVE[NAME=S]
Notes Removes a single variable from the current Job Variables list.

The JOS_VAR_command macro commands work with in active JOS Context. Before adding or removing Job Variables, in macro, you must first open a JOS context using JOS_CONTEXT_OPEN.

When you have finished making changes, apply the changes using the JOS_CHANGED_PROMOTE command and then close the context with JOS_CONTEXT_CLOSE.

It would be helpful to first use Macro - Record and record a short macro using the commands you wish to program. Then review the recorded macro to see how the Context is used.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
NAME The name of the variable to remove. (required) None
Feature JOB VAR: ADD A VARIABLE
Command JOS_JVAR_STORE[NAME=S, TYPE=I, VALUE=S, DESC=S]
Notes Add a new variable to the Job Variables list. With this command you provide the variable's name, the data type, value, and an optional short description.

The JOS_VAR_command macro commands work with in active JOS Context. Before adding or removing Job Variables, in macro, you must first open a JOS context using JOS_CONTEXT_OPEN.

When you have finished making changes, apply the changes using the JOS_CHANGED_PROMOTE command and then close the context with JOS_CONTEXT_CLOSE.

It would be helpful to first use Macro - Record and record a short macro using the commands you wish to program. Then review the recorded macro to see how the Context is used.

For information on using JOS Contexts, see the Fundamentals: JOS Information and KBM Library topic.

Application All
Parameters
Parameter Description Default
NAME The name of the variable to create. (required) None
TYPE Data type of the variable. (required)
Options are: 1 = INTEGER, 2 = DECIMAL, 3 = STRING
None
VALUE Value for the variable. All values are supplied as STRING types; the string will be converted to an INTEGER or DECIMAL depending upon the variable TYPE. (required) None
DESC Optional short description for variable None
Feature JOB TOOL SEQUENCE
Command JTOOL_SEQ[BA=I, TT=S, TL=I, ME=I]
Application All
Parameters
Parameter Description Default
BA Before/After
Values: 0 = Before, 1 = After
0
TT Turret:Tool string (Turning only) None
TL Tool number (required) None
ME Match Element
Values: 0 = Off, 1 = On
Modal
K [To Top]
Feature LOAD KBM STEP GROUP
Command KBM_SGROUP_LOAD[OBJUID=I, USE=I]
Notes This is not a recordable macro command.
Application All
Parameters
Parameter Description Default
OBJUID ID number of Step Group to Load (required)
Load from KBM Library, as seen in Process - KBM Library - Manage Library, on the Step Groups tab.
None
USE Automatically assign Step and Tool numbers or use Step/Tool numbers from group (required)
Values: 0 = Automatically assign, 1 = Use Step/Tool numbers associated with group
None
Feature LOAD STEP FROM KBM
Command KBM_STEP_DATA_LOAD[GRPUID=I, SNUM=I, OBJUID=I]
Notes This function is used in two fashions. When loading a Step from a Step Group, the command is:

KBM_STEP_DATA_LOAD[GRPUID=group ID, SNUM=step number, OBJUID=0]

When not using a Step Group, the command is:

KBM_STEP_DATA_LOAD[GRPUID=0, SNUM=0, OBJUID=step id]

SmartCAM recommends that if you want to automate this behavior that you record a macro completing the steps you require and then edit as needed. It may be difficult to manually code for these macro statements, as they must appear in the correct location in the macro relative to the required JOS_CONTEXT_NEW[], JOS_ITEM_NEW[], JOS_CONTEXT_OPEN[], JOS_CHANGES_PROMOTE[], and JOS_CONTEXT_CLOSE[] commands.

JOS_CONTEXT_NEW[BASEITEM=1, NEWSNCS=1030101]
JOS_ITEM_NEW[BASEITEM=2, NEWSNCS=2410101]

//	get Rough Milling / 2" Dia 2 Flute End Mill from KBM
KBM_STEP_DATA_LOAD[GRPUID=4, SNUM=11, OBJUID=0]

JOS_FIELD_EDIT[FLDNAME="tl_num", EXPR="1"]
JOS_FIELD_EDIT[FLDNAME="ta_usrnam", EXPR="1"]
JOS_CHANGES_PROMOTE[]
JOS_CONTEXT_CLOSE[]
Application All
Parameters
Parameter Description Default
GRPUID Step Group ID (required)
ID of the group from which the Step is being retrieved. The ID number can be found in Process - KBM Library - Manage Library, the Step Groups tab. When not loading from a Step Group, the field should be 0.
None
SNUM Step Number (required)
The Step Number, of the Step in the Step Group, to load. When not retrieving a Step from a Step Group, value should be zero (0).
None
OBJUID The Step ID of the Step to load, otherwise the value is zero (0) (required).
The Step ID is used when loading a Step that is not part of Step Group.
None
Feature LOAD KBM TOOL GROUP
Command KBM_TGROUP_LOAD[OBJUID=I, USE=I]
Application All
Parameters
Parameter Description Default
OBJUID Group ID for Tool Group (required)
Group ID, for the Tool Group, to load from the KBM Library. ID shown in Process - KBM Library - Manage Library, on the Tool Groups tab.
None
USE Tool Number Assignment (required)
Values: 0 = Automatically Assign, 1 = Use Tool Number from Group
None
Feature LOAD TOOL FROM KBM (Milling, Fabrication, Wire EDM)
Command KBM_TOOL_DATA_LOAD[GRPUID=I, TNUM=I, OBJUID=I]
Notes This function is used in two fashions. When loading a Tool from a Tool Group, the command is:

KBM_TOOL_DATA_LOAD[GRPUID=group ID, TNUM=tool number, OBJUID=0]

When not using a Tool Group, the command is:

KBM_TOOL_DATA_LOAD[GRPUID=0, TNUM=0, OBJUID=step id]

SmartCAM recommends that if you want to automate this behavior that you record a macro completing the steps you require and then edit as needed. It may be difficult to manually code for these macro statements, as they must appear in the correct location in the macro relative to the required JOS_CONTEXT_NEW[], JOS_ITEM_NEW[], JOS_CONTEXT_OPEN[], JOS_CHANGES_PROMOTE[], and JOS_CONTEXT_CLOSE[] commands.

JOS_CONTEXT_NEW[BASEITEM=1, NEWSNCS=2410101]

// get 2" Dia 2 Flute End Mill from KBM
JOS_ITEM_NEW[BASEITEM=2, NEWSNCS=2410101]

//	get Rough Milling / 2" Dia 2 Flute End Mill from KBM
KBM_TOOL_DATA_LOAD[GRPUID=4, TNUM=1, OBJUID=0]

JOS_FIELD_EDIT[FLDNAME="tl_num", EXPR="1"]
JOS_FIELD_EDIT[FLDNAME="ta_usrnam", EXPR="1"]
JOS_CHANGES_PROMOTE[]
JOS_CONTEXT_CLOSE[]
Application Milling, Fabrication, Wire EDM
Parameters
Parameter Description Default
GRPUID Tool Group ID (required)
ID of the group from which the Tool is being retrieved. When not loading from a Step Group, the field should be 0.
None
TNUM Tool Number (required)
The Tool Number, of the Tool in the Tool Group, to load. When not retrieving a Tool from a Tool Group, value should be zero (0).
None
OBJUID The Tool ID of the Tool to load, otherwise the value is zero (0) (required)
The Tool ID is used when loading a Tool that is not part of Tool Group.
None
Feature LOAD TOOL FROM KBM (Turning)
Command KBM_TOOL_DATA_LOAD[GRPUID=I, TURRET=I, TNUM=I, OBJUID=I]
Notes This command works the same as the above Milling/Fabrication/Wire EDM command; except, that with Turning applications you also need to provide the Tool Turret.
Application Turning
Parameters
Parameter Description Default
GRPUID Tool Group ID (required)
ID of the group from which the Tool is being retrieved. When not loading from a Step Group, the field should be 0.
None
TURRET Turret Number (required when using TNUM)
When using TNUM, other than setting to 0, you must provide the turret number for the related tool number.
TNUM Tool Number (required)
The Tool Number, of the Tool in the Tool Group, to load. When not retrieving a Tool from a Tool Group, value should be zero (0).
None
OBJUID The Tool ID of the Tool to load, otherwise the value is zero (0) (required)
The Tool ID is used when loading a Tool that is not part of Tool Group.
None
Feature KILL PLANE
Command KILL_PLANE[WP=S]
Application All
Parameters
Parameter Description Default
WP Plane Name (required)
Enter name of plane, can use ? as a single character wildcard and * as multi-character wildcard. Setting it to * will kill all unused planes.
All
L [To Top]
Feature LAST VIEW
Command LAST_VIEW[]
Notes Display previous view of the model. There are no macro parameters for this command.
Application All
Feature LAYER GROUP
Command LAYER_GRP[LY=S, AR=I]
Application All
Parameters
Parameter Description Default
LY Layer Number, Range, or List (required) None
AR Add/Remove
Values: 0 = Add, 1 = Remove
Modal
Feature LAYER SEQUENCE
Command LAYER_SEQ[BA=I, LY=I, ME=I]
Application All
Parameters
Parameter Description Default
BA Before/After
Values: 0 = Before, 1 = After
0
LY Layer (required) None
ME Match element
Values: 0 = Off, 1 = On
Modal
Le [To Top]
Feature LEAD IN
Command LEAD_IN[EL=I, AN=D, DS=D, RA=D, D2=D, LC=I, TY=I, CS=I, RP=I, RX=D, RY=D, MO=I, MB=I]
Application All
Parameters
Parameter Description Default
EL Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
AN Angle None
DS Length None
RA Radius (for arc) None
D2 Perp Distance None
LC Location
Values: 0 = In, 1 = Out, 2 = Both
2
TY Type
Values: 0 = Line, 1 = Arc, 2 = Both
0
CS Change start
Values: 0 = No, 1 = Yes
0
RP Reference Point On
Values: 0 = No, 1 = Yes
0
RX Reference point X None
RY Reference point Y None
MO Line Offset Match
Values: 0 = Off (no offset line), 1 = On (Offset on lines)
0
MB +/- Angle
Values: 0 = Off (do not honor +/- angle convention), 1 = On (honor +/- angle convention)
0
Feature LEAD PARAMS
Command LEAD_PARAMS[IST=I, ILL=D, ILA=D, ILAM=I, IAR=D, IAA=D, IAAM=I, IOV=D, OST=I, OLL=D, OLA=D, OLAM=I, OAR=D, OAA=D, OAAM=I, OOV=D, CC=I, CX=I]
Notes LEAD_PARAMS[] is used in combination with LEADS_APPLY[] and LEADS_ENDS. LEAD_PARAMS[] controls the Lead-In/Out parameter settings, while LEADS_APPLY[] and LEADS_ENDS[] sets the entities to apply the parameters to and how they are applied. LEAD_PARAMS[] is modal, if the settings do not change you only need run it once.
Application All
Parameters
Parameter Description Default
IST Lead-in Style (required)
Values: 0 = Line, 1 = Arc, 2 = Line and Arc, 4 = None
4
ILL Lead-in Line Length (required if Style is Line or Line/Arc) None
ILA Lead-in Line Angle (required if Style is Line or Line/Arc) None
ILAM Lead In Line Absolute check box
Values: 0 = Unchecked (Incremental angle), 1 = Checked (Absolute angle)
0
IAR Lead-in Arc Radius (required if Style is Arc or Line/Arc) None
IAA Lead-in Arc Angle (required if Style is Arc or Line/Arc) None
IAAM Lead In Arc Angle Absolute check box
Values: 0 = Unchecked (Incremental angle), 1 = Checked (Absolute angle)
0
IOV Lead-in Overlap 0.0
OST Lead-out Style (required)
Values: 0 = Line, 1 = Arc, 2 = Line and Arc, 4 = None, 5 = Match
4
OLL Lead-out Line Length (required if Style is Line or Line/Arc) None
OLA Lead-out Line Angle (required if Style is Line or Line/Arc) None
OLAM Lead Out Line Angle Absolute check box
Values: 0 = Unchecked (Incremental angle), 1 = Checked (Absolute angle)
0
OAR Lead-out Arc Radius (required if Style is Arc or Line/Arc) None
OAA Lead-out Arc Angle (required if Style is Arc or Line/Arc) None
OAAM Lead Out Arc Angle Absolute check box
Values: 0 = Unchecked (Incremental angle), 1 = Checked (Absolute angle)
0
OOV Lead-out Overlap 0.0
CC Compensation Codes
Values: 0 = Off, 1 = On
0
CX Compensation Off with Last Lead
Values: 0 = Off, 1 = On
0
Feature LEAD IN/OUT PARAMETRIC
Command LEADS_APPLY[GN=S, EL=I, IA=I, OA=I, SN=I, XN=D, YN=D, MO=I]
Notes LEADS_APPLY[] is used in combination with LEAD_PARAMS[]. LEAD_PARAMS[] controls the Lead-In/Out parameter settings, for the Lead I/O Parametric solution. While LEADS_APPLY[] sets the entities to apply the parameters to and how they are applied. LEAD_PARAMS[] is modal, if the settings do not change you only need run LEAD_PARAMS[] once.
Application All
Parameters
Parameter Description Default
GN Group Name (required if using a group) None
EL Element Number (required if not using a group)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
IA Lead-in Application (required)
Values: 0 = Add, 1 = Replace
None
OA Lead-out Application (required)
Values: 0 = Add, 1 = Replace
None
SN Use Start Near (required)
Values: 0 = No, 1 = Yes
None
XN X Coordinate for Start Near Point (required if Start Near is enabled) None
YN Y Coordinate for Start Near Point (required if Start Near is enabled) None
MO Line Offset Match
Values: 0 = Off, 1 = On
None
Feature LEAD IN/OUT START/END
Command LEADS_ENDS[GN=S, EL=I, IA=I, OA=I, SN=I, XN=D, YN=D, XS=D, YS=D, XE=D, YE=D, MO=I]
Notes LEADS_ENDS[] is used in combination with LEAD_PARAMS[]. LEAD_PARAMS[] controls the Lead-In/Out parameter settings, for the Lead I/O Start/End solution. While LEADS_ENDS[] sets the entities to apply the parameters to and how they are applied. LEAD_PARAMS[] is modal, if the settings do not change you only need run LEAD_PARAMS[] once.
Application All
Parameters
Parameter Description Default
GN Group Name (required if using a group) None
EL Element number or name (required if not using a group)
If the element has been named, you can substitute the element's name for the element number. Just enter the element's name in quotes, instead of the integer element number.
None
IA Lead-in Application (required)
Values: 0 = Add, 1 = Replace
None
OA Lead-out Application (required)
Values: 0 = Add, 1 = Replace
None
SN Use Start Near (required)
Values: 0 = No, 1 = Yes
None
XN X Coordinate for Start Near Point (required if Start Near is enabled) None
YN Y Coordinate for Start Near Point (required if Start Near is enabled) None
XS X Coordinate for Start Point (required) None
YS Y Coordinate for Start Point (required) None
XE X Coordinate for End Point (required) None
YE Y Coordinate for End Point (required) None
MO Line Offset Match
Values: 0 = Off, 1 = On
None
Feature LEAVE
Command LEAVE[]
Notes Stops the macro playback and exits the SmartCAM application. Allows you to save any unsaved changes to your process model. There are no macro parameters for this command.
Application All
Li [To Top]
Feature LINE
Command LINE[XS=D, YS=D, ZS=D, TS=I, XE=D, YE=D, ZE=D, TE=I, XI=D, YI=D, ZI=D, AN=D, DS=D, SE=I, SS=I, PK=I]
Application All
Parameters
Parameter Description Default
XS Start Point X (Start Point Z for Turning) None
YS Start Point Y (Start Point D for Turning) None
ZS Start Point Z (Start Point Y for Turning) None
XE End Point X (End Point Z for Turning) None
YE End Point Y (End Point D for Turning) None
ZE End Point Z (End Point Y for Turning) None
XI Int Point X (Int Point Z for Turning) None
YI Int Point Y (Int Point D for Turning) None
ZI Int Point Z (Int Point Y for Turning) None
AN Line Angle None
DS Length None
TS Start Tangent Arc
Values: Arc element number
None
TE End Tangent Arc
Values: Arc element number
None
SS Start solution designator
Values: 0 = +, 1 = -, 2 = N/A
0
SE End solution designator
Values: 0 = +, 1 = -, 2 = N/A
0
PK Peck (Turning only)
Values: 0 = Off, 1 = On
0
Feature LINE AT ANGLE
Notes Implemented as a custom macro function. See the LAA.MCL macro file in your SYSMCL directory.

To incorporate in your macro, use MAC_EXE[] to call the shipped macro.

Application All
Feature LINE PROFILE
Command LINE_PROF[XE=D, YE=D, ZE=D, XI=D, YI=D, XJ=D, YJ=D, AN=D, DS=D, TI=I, SS=I, SE=I, SP=I]
Notes The Arc and Line profile commands need to be used in combination with PROF_CONTEXT_OPEN and PROF_CONTEXT_CLOSED macro commands. The PROF_CONTEXT_OPEN command starts the profile context, then you start your profile using the START_PROF command, followed by the Line and Arc profile statements needed to construct your profile. Then end the profile with the PROF_CONTEXT_CLOSE command.
Application All
Parameters
Parameter Description Default
XE End Point X None
YE End Point Y None
ZE End Point Z None
XI 1st Int Point X None
YI 1st Int Point Y None
XJ 2nd Int Point X None
YJ 2nd Int Point Y None
AN Line Angle None
DS Length None
TI Tangent/Intersect to previous element
Values: 0 = Intersect, 1 = Tangent
0
SS Solution start
Values: 0 = +, 1 = -, 2 = N/A
2
SE Solution end
Values: 0 = +, 1 = -, 2 = N/A
2
SP Solution pending
Values: 0 = +, 1 = -, 2 = N/A
2
Feature LINEAR ROUGH TURNING
Command TLINEAR[PS=I, PE=I, MM=I, MS=I, ME=I, ZS=D, XS=D, DP=D, AN=D, XF=D, ZF=D, FC=I, LA=D, TA=D, CD=D,
LD=D, BD=D, BP=I, RP=I, RS=I, PA=I, OP=I, TF=I, TT=D, TP=I, LY=I]
Application Turning
Parameters
Parameter Description Default
PS Part Profile Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PE Part Profile End Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
MM Stock Defined By (required)
Values: 0 = Stock profile, 1 = Stock point, 2 = Part profile
None
MS Stock Profile Start Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
ME Stock Profile End Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
ZS Stock Point Z None
XS Stock Point X None
DP Pass Depth (required) None
AN Pass Angle (required) None
XF X Finish Allowance (required) None
ZF Z Finish Allowance (required) None
FC Facing (required)
Values: 0 = Off, 1 = On
None
LA Effective Edge Leading Angle (required) None
TA Effective Edge Trailing Angle (required) None
CD Clearance Distance (required) None
LD Infeed Distance (required) None
BD Back-off Distance (required) None
BP Bidirectional Passes (required)
Values: 0 = Off, 1 = On
None
RP Use Retract Point
Values: 0 = Off, 1 = On
1
RS Return to Start
Values: 0 = Off, 1 = On
0
PA Equalize By
Values: 0 = None, 1 = Decrease depth, 2 = Increase depth
0
OP Overlap Passes (required)
Values: 0 = Off, 1 = On
None
TF Thinning
Values: 0 = Off, 1 = On
0
TT Thinning Tolerance 0.0
TP Create TPP - Theoretical Part Profile (required)
Values: 0 = Off, 1 = On
None
LY Theoretical Part Profile Layer (required) None
Lo [To Top]
Feature LOFTED MESH
Command LOFTED[XS=D, YS=D, ZS=D, PD=I, SP=I, SV=D, ZT=D, DI=I, DV=D, OF=I, OA=D, CM=I, CG=I]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
XS Start Corner X 0.0
YS Start Corner Y 0.0
ZS Start Corner Z 0.0
PD Path Direction
Values: 0 = Cross, 1 = Along, 2 = Planar
0
SP Spacing Type
Values: 0 = Distance, 1 = Count, 2 = Cusp Hgt
0
SV Spc Val - Spacing Value (required) None
ZT Planar Z (Z top) 0.0
DI Divisions
Values: 0 = Distance, 1 = Count, 2 = Mid-Tol, 3 = In-Tol, 4 = Out-Tol
0
DV Div Val - Division value (required) None
OF Offset
Values: 0 = Positive, 1 = Negative, 2 = 0
2
OA Finish Allowance 0.0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
GC Gouge Correction
Values: 0 = Off, 1 = On
0
Feature LOFTED SURFACE
Command SRF_LOFTED[]
Notes Creates a lofted surface using the current group of selected profiles. There are no macro parameters for this command.
Application FreeForm Machining
M [To Top]
Feature MARKUP NOTE
Command MARKUP_NOTE[XS=D, YS=D, ZS=D, XE=D, YE=D, ZE=D, TX=S, LK=S]
Notes Markup Location is the position where the Markup Notes graphic is displayed. Leader Point is where the Arrow, at the end of the leader line, is positioned.
Application All
Parameters
Parameter Description Default
XS Markup Note X Position (required) None
YS Markup Note Y Position (required) None
ZS Markup Note Z Position (required) None
XE Leader X Position (required) None
YE Leader Y Position (required) None
ZE Leader Z Position (required) None
TX Text content for markup note (required)
You can use the escaped newline character (\n) to add a line break to the note string.
None
LK Text containing any Link file or Web Address associated with Note None
Feature MACRO EXECUTE
Command MAC_EXE[FN=S]
Notes Temporarily suspends the currently running macro and runs the one pointed to by the FN parameter. When the called macro completes, execution resumes in the original macro.

See the Record and Playback Overview topic for more information on macro recording and playback.

Application All
Parameters
Parameter Description Default
FN Path and Filename of Macro to Run (required) None
Feature MASK
Command MASK[ST=S, TT=S, TL=S, LY=S, WP=S, ZT=D, ZB=D, SH=I]
Notes The Mask/Unmask toggle (SH) is only applicable when masking or unmasking ALL Steps, Layers, Workplanes, or Tools. When masking or unmasking individual items, this parameter has no effect and the macro command simply acts as a toggle.

Example:

MASK[LY="*", SH=0] - Masks all layers, SH parameter is valid
MASK[LY="1", SH=0] - Masking layer 1, SH parameter is not used, MASK[] works like a toggle

Application All
Parameters
Parameter Description Default
ST Step
Values: Valid Step number, range, or wildcard
None
TT Tur:TL (Turning only)
Valid Turning Turret:Tool combination
None
TL Tool (not valid for Turning)
Valid Tool number, range, or wildcard
None
LY Layer
Valid Layer number, range, or wildcard
None
WP Workplane None
ZT Mask Z Top None
ZB Mask Z Bottom None
SH Mask/Unmask Toggle
Values: 0 = Mask, 1 = Unmask
1
Me [To Top]
Feature MERGE
Command MERGE[FN=S, XS=D, YS=D, ZS=D, SR=I, RX=I, CL=I, IAP=I, JD=I]
Application All
Parameters
Parameter Description Default
FN Path and Filename of File to Merge (required) None
XS Base Point X 0.0
YS Base Point Y 0.0
ZS Base Point Z 0.0
SR Show Model Checking Report. Controls whether SmartCAM Diagnostics is run and the results window opened after reading or importing file.
Values: 0 = Off, 1 = On
0
RX Attempt Model Healing. Controls whether model healing is run when importing CAD model.
Values: 0 = Off, 1 = On
0
CL Check Level. If either SR or RX are used, must be set.
Values: 1 = Low, 2 = Medium, 3 = High
0
IAP Import CAD Data to Active Plane checkbox.
Values: 0 = Off, 1 = On
0
JD Merge Job Data
Values: 0 = Off, 1 = On
0
Feature MERGE PLANE
Command MERGE_PLANE[WP=S, MO=I]
Application All
Parameters
Parameter Description Default
WP Plane Name (required)
Values: ? = Wild Character, * = Wildcard
None
MO Merge Opposite
Values: 0 = Off, 1 = On
0
Feature MIRROR
Command MIRROR[XS=D, YS=D, ZS=D, XE=D, YE=D, ZE=D, X1=D, YI=D, ZI=D, CP=I, RP=I, TS=I]
Application All
Parameters
Parameter Description Default
XS 1st Point X (required) None
YS 1st Point Y (required) None
ZS 1st Point Z (required when TY set to 3D) None
XE 2nd Point X (required) None
YE 2nd Point Y (required) None
ZE 2nd Point Z (required when TY set to 3D) None
XI 3rd Point X (required when TY set to 3D) None
YI 3rd Point Y (required when TY set to 3D) None
ZI 3rd Point Z (required when TY set to 3D) None
CP Copy
Values: 0 = No, 1 = Yes
0
TS Sort by Tools
Values: 0 = Off, 1 = On
1
RP Reverse Order and Direction (Milling and Wire EDM only)
Values: 0 = Off, 1 = On
0
TY 2D or 3D Selector
Values: 0 = 2D, 1 = 3D
0
SP Suppress Planes
Values: 0 = Off, 1 = On
1
Mo [To Top]
Feature MODIFY CONTEXT CLOSE
Command MOD_CONTEXT_CLOSE[]
Notes Used in combination with MOD_CONTEXT_OPEN and ENUM_GRP. Used in macros to enable Process container regeneration. There are no macro parameters for this command.

The Process container regeneration functionality, when run from a macro, requires you to open and close the Process context and, if groups are used, to enumerate them. Normally, you would record a macro using the recall functionality and then edit it. This makes it easier to figure out how to use this functionality.

The following example explains each of the steps:

MOD_CONTEXT_OPEN[EL=1]
ENUM_GRP[EN="17"]
STRAIGHT[AN=0, SS=0, SO=0.5, OA=0, TI=0.001, TO=0.005, PT=0,
CU=0, UE=1, CF=0, BG=0, RU=0, RD=0.125, EU=0, ED=0.5, PH=0, 
SU=0, SD=0.1, UU=0, ZT=0.01, AT=2, LU=0, LN="..\\mill\\ffdata\\machine.LOG",
CSN="Active", ASN="None", BCN="None"]
MOD_CONTEXT_CLOSE[]

The above macro fragment opens a previously created Straight machining process container, changes the Step Over value and then regenerates the toolpath.

The MOD_CONTEXT_OPEN[EL=1] macro command selects the Process container to regenerate. In this case, the element number is "1".

Straight Machining uses a group of surfaces, the ENUM_GRP[EN="17"] selects this group of surfaces. In this example, only one surface is used. You must select the same group of surfaces that you used when the Process container was originally created. ENUM_GRP allows you to select ranges of surfaces and individual surfaces. Example: EL="1-6,11,14-21". This says to select the elements 1 through 6, element 11, and elements 14 through 21.

The next macro command is the STRAIGHT command. This is the normal STRAIGHT macro command, with all the needed values filled in.

Finally, the Process regeneration context is closed with MOD_CONTEXT_CLOSE.

Application All
Feature MODIFY CONTEXT OPEN
Command MOD_CONTEXT_OPEN[EL=I]
Notes Opens the context needed to recall and modify a process container. Used in combination with MOD_CONTEXT_CLOSE[] and ENUM_GRP[].
Application All
Parameters
Parameter Description Default
EL Element Number for Process Container to Modify (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
Feature MODIFY (element type)
Command MOD_element type[]
Notes The modify functions contain the same parameters as the original creation macro commands, with an additional EL element to allow you to select the element to modify. If not sure what MOD_* to use, modify an element of the same type, while recording a macro. Then review the recorded macro to see which macro command to use.

MOD_ARC[EL=I, ...]
MOD_CIRC_HOLE_PATT[EL=I, ...]
MOD_DRLS[EL=I, ...]
MOD_ELLIPSE[EL=I, ...]
MOD_HELIX[EL=I, ...]
MOD_FAB_HOLE[EL=I, ...]
MOD_GROOVE[EL=I, ...]
MOD_HOLE[EL=I, ...]
MOD_LINE[EL=I, ...]
MOD_POINT[EL=I, ...]
MOD_POLYLINE[EL=I, ...]
MOD_POLY5X[EL=I, ...]
MOD_SPLINE[EL=I, ...]
MOD_SUBROUTINE[EL=I, ...]
MOD_TEX[EL=I, ...]
MOD_THREAD2[EL=I, ...]
MOD_UEVENT[EL=I, ...]

Application All
Parameters
Parameter Description Default
EL Element to modify (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
* Varies depending upon element type None
Feature MODIFY CONTAINER
Command MOD_CONTAINER[EL=I, NN=S, TX=S, OP=I]
Notes For standard Containers, not regenerable Process Containers.
Application All
Parameters
Parameter Description Default
EL Container Element Number (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
NN Element Name None
TX Container Description None
OP Modification Operation:
Values: 0 = Preserve, 1 = Unpack, 2 = Prepend, 3 = Append
0
Feature MODIFY LINKS
Command MOD_LINK[EL=I, XS=D, YS=D, ZS=D, XE=D, YE=D, ZE=D]
Application Wire EDM
Parameters
Parameter Description Default
EL Link Element to Modify (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
XS New Start Point X (required) None
YS New Start Point Y (required) None
ZS New Start Point Z (required) None
XE New End Point X (required) None
YE New End Point Y (required) None
ZE New End Point Z (required) None
Feature MOVE
Command MOVE[CP=I, NC=I, TS=I, XS=D, YS=D, ZS=D, XE=D, YE=D, ZE=D]
Application All
Parameters
Parameter Description Default
CP Copies (Overrides NC if false)
Values: 0 = Off, 1 = On
0
NC Number of Copies (if CP=1)
Values: 0 - 999
1
TS Sort by Tools
Values: 0 = Off, 1 = On
Modal
XS From Point X 0.0
YS From Point Y 0.0
ZS From Point Z 0.0
XE To Point X None
YE To Point Y None
ZE To Point Z None
MC Move Clear (Milling only)
Values: 0 = Off, 1 = On
0
Feature MOVE REFERENCE
Command MOVE_REF[CP=I, NC=I, DP=S]
Application All
Parameters
Parameter Description Default
CP Copies (overrides NC if False)
Values: 0 = Off, 1 = On
0
NC Number of Copies 1
DP Destination Plane None
N [To Top]
Feature NAME ELEMENT
Command NAME_ELMT[EL=I, EN=S]
Application All
Parameters
Parameter Description Default
EL Element to Name (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
EN Name to Use (required) None
Feature NAME GROUP
Command NAME_GRP[GN=S, RM=I]
Notes Create a named group and copy in contents of active group. If group name already exists, replaces contents of existing group with current active group contents. If RM is set to 1, will remove the named group; unless the named group is RESULT which is a system maintained group and cannot be removed.
Application All
Parameters
Parameter Description Default
GN Group Name (required) None
RM Remove
Values: 0 = Off, 1 = On
0
Feature NAME VIEW
Command NAME_VIEW[VN=S, RM=I, VROT=I, VSIZE=I, MASK=I, VFILT=I, VIS=I]
Application All
Parameters
Parameter Description Default
VN View Name (required) None
RM Remove
Values: 0 = Off, 1 = On
0
VROT Orientation
Values: 0 = Off, 1 = On
1
VSIZE View Size
Values: 0 = None, 1 = Current, 2 = Full, 3 = Base
1
MASK Mask
Values: 0 = Off, 1 = On
0
VFILT View Filters
Values: 0 = Off, 1 = On
0
VIS Visibility
Values: 0 = Off, 1 = On
0
Ne [To Top]
Feature NEST MOVE
Command NEST_MOV[XS=D, YS=D, XE=D, YE=D, CP=I, SP=D]
Application Fabrication, Milling
Parameters
Parameter Description Default
XS From/Center Point X (required) None
YS From/Center Point Y (required) None
XE To Point X (required) None
YE From Point Y (required) None
CP Copy
Values: 0 = Off (Move), 1 = On (Copy)
0
SP Parallel Distance 0.0
Feature NEST PARALLEL
Command NEST_PAR[RE=I, PE=I, XS=D, YS=D, CP=I, SP=D]
Application Fabrication, Milling
Parameters
Parameter Description Default
RE Reference Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PE Parallel Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
XS From Point X (required) None
YS From Point Y (required) None
CP Copy
Values: 0 = Off (Move), 1 = On (Copy)
0
SP Parallel Distance None
Feature NEST ROTATE
Command NEST_ROT[XS=D, YS=D, RI=D, CP=I, SP=D]
Application Fabrication, Milling
Parameters
Parameter Description Default
XS From Point X (required) None
YS From Point Y (required) None
RI Rotation Increment (required) None
CP Copy
Values: 0 = Off (Move), 1 = On (Copy)
0
SP Parallel Distance 0.0
Feature NEW (PM File)
Command NEW[FN=S, JT=I]
Notes JT is ignored in .jsf mode and defaults to 0 in .jof mode.
Application All
Parameters
Parameter Description Default
FN Path and Filename (required) None
JT Job Type
Values: 0 = Read .jsf and convert to .jof, 1 = Read .jof
0
Feature NEW INCH MODEL
Command NEW_INCH[]
Notes If needed, prompts to save current file, then opens a new empty Inch job. There are no macro parameters for this macro command.
Application All
Feature NEW METRIC MODEL
Command NEW_METRIC[]
Notes If needed, prompts to save current file, then opens a new empty Metric job. There are no macro parameters for this macro command.
Application All
Feature NEW GROUP
Command NEW_GRP[]
Notes Empties the active group. There are no macro parameters for this macro command.
Application All
No [To Top]
Feature NOCORE
Command NOCORE[EL=I, XC=D, YC=D, HR=D, FA=D, FC=I, WC=D, LW=D]
Application Wire EDM
Parameters
Parameter Description Default
EL Boundary Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
XC Start Hole Center X (required) None
YC Start Hole Center Y (required) None
HR Radius (required) None
FA Finish Allowance 0.0
FC Offset Pass Count 1
WC Width of Cut (required) None
LW Last Width of Cut (required) None
Feature NORMALS FLIP
Command NORMFLIP[MB=I]
Notes Reverses the surface normal vector direction on the ACIS face for each surface element in the active group.

The normal is at the surface center (u=0.5, v=0.50).

The MB parameter controls whether to exclude faces that are in manifold solid bodies, or any non-single face body, in the group of faces having their normals flipped. Setting value to 0 includes manifold solid body faces in those to be reversed to keep the multi-face bodies pointing the same way.

Setting value to 1, excludes manifold solid body faces from those to be reversed. Use Surface Edit - Extract and Extract Surfaces From Solids to change individual items.

Application All
Parameters
Parameter Description Default
MB Manifold Bodies
Values: 0 = Off, 1 = On
1
O [To Top]
Feature OFFSET MESH
Command OFFSET[E1=I, E2=I, OC=I, OF=I, OA=D, KO=I, GC=I, CM=I, VT=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 Mesh Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Mesh End Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
OC Offset Calculation
Values: 0 = Full, 1 = Partial, 2 = De-offset
0
OF Offset Direction
Values: 0 = Positive, 1 = Negative
0
OA Finish Allowance (required) None
KO Keep Original
Values: 0 = Off, 1 = On
0
GC Gouge Correction
Values: 0 = Off, 1 = On
0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
VT Virtual mesh tolerance Modal
Feature OFFSET SUBSPINDLE
Command OFFSET_SUBSPNDL[SP=D]
Application Advanced Turning
Parameters
Parameter Description Default
SO Sub-spindle Z-Offset (required)
Feature ON LAYER
Command ON_LAYER[LY=I, WP=S, LV=D, PT=D]
Application All
Parameters
Parameter Description Default
LY Layer to Use None
WP Workplane Name Modal
LV Level Modal
PT Profile Top (To turn off, set to ?) Modal
Op [To Top]
Feature OPEN
Command READ[FN=S, SR=I, RX=I, CL=I]
Application All
Parameters
Parameter Description Default
FN Path and Filename of model to open (required)
File extension required
None
SR Show Model Checking Report. Controls whether SmartCAM Diagnostics window is opened after reading or importing file.
Values: 0 = Off, 1 = On
0
RX Attempt Model Healing. Controls whether model healing is run when importing CAD model.
Values: 0 = Off, 1 = On
0
CL Check Level. If either SR or RX are used, CL must be set.
Values: 1 = Low, 2 = Medium, 3 = High
0
Feature OPEN PROFILE
Command OPN_PROF[E1=I, E2=I, E3=I, XC=D, YC=D, WC=D, FA=D, DC=D, FL=D, DS=D, DE=D, AC=D, RS=I, ED=D, CC=I, CO=I, AP=I, EP=I, RD=I, MS=I, SWR=D, CS=I, SCR=D]
Application Milling, Advanced Turning
Parameters
Parameter Description Default
E1 Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 Material Boundary (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
XC Cut Area Point X (required) None
YC Cut Area Point Y (required) None
WC Width of Cut (required) None
FA Wall Allowance 0.0
DC Depth of Cut (required) None
FL Floor Allowance 0.0
DS First Pass Level - depth (required) None
DE Final Pass Level - depth (required) None
AC Corner Roll Angle 60.0
RS Roll Short Line Segments
Values: 0 = Off, 1 = On
1
ED Extension Distance 0.0
CC Climb Cut
Values: 0 = Conventional, 1 = Climb
0
CO Connect Passes
Values: 0 = Off, 1 = On
0
AP Alternate Passes
Values: 0 = Off, 1 = On
0
EP Equal Depth Passes
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels
Values: 0 = Off, 1 = On
0
MS Smooth Path
Values: 0 = Off, 1 = Rough Only, 2 = Rough and Final
0
SWR Smooth Path Ratio 1.0
CS Smooth Connection
Values: 0 = Off, 1 = On
0
SCR Smooth Connection Ratio
Values: 2-6
3.0
Feature OPTIMIZE
Command OPTIMIZE[XS=D, YS=D, OM=I, XY=I, SP=D, SN=D, ST=I, MT=D]
Application All
Parameters
Parameter Description Default
XS Start Point X (required) None
YS Start Point Y (required) None
OM Optimization Method
Values: 0 = Closest, 1 = Zigzag, 2 = Improve
0
XY X or Y Direction
Values: 0 = X direction, 1 = Y direction
0
SP Spacing 0.0
SN Sensitivity 1.0
ST Sort by Tools
Values: 0 = Off, 1 = On
0
MT Maximum Calculation Time (for OM=2) 9999.9
P [To Top]
Feature PARTING LINE CURVES
Command PART_CURVES[PT=D]
Notes Generates polyline curves around the silhouette of the surfaces in the active group, as viewed down the active workplane Z axis; from +Z to -Z. This command cannot be recorded.
Application All
Parameters
Parameter Description Default
PT Surface Deviation Tolerance 0.001
Feature PARTING
Command PARTING[ZS=D, XS=D, ER=D, CB=I, CT=I, ANG=D, SIZ=D]
Application Turning
Parameters
Parameter Description Default
ZS Start Location Z (required) None
XS Start Location X (required) None
ER End Radius (required) None
CB Corner Break (required)
Values: 0 = None, 1 = Part, 2 = Stock, 3 = Both
None
CT Type (required)
Values: 0 = Chamfer, 1 = Radius
None
ANG Angle (required) None
SIZ Size (required) None
RAD Radius (required) None
Feature PARTING PARAMS
Command PARTING_PARAMS[ID=D, OD=D, PT=I, FPD=D, PD=D, LOD=D, PC=I, CR=D]
Notes Parameters for the PARTING[] command. Must be called prior to calling PARTING[].
Application Turning
Parameters
Parameter Description Default
ID Infeed Distance (required) None
OD Outfeed Distance 0
PT Pecking (required) None
FPD First Peck Depth (required) None
PD Peck Depth (required) None
LOD Lift Off Distance (required) None
PC Part Catcher (required)
Values: 0 = None, 1 = Before Cut, 2 = Catch Diameter
None
CR Catch Radius (required) None
Feature PAUSE
Command PAUSE[TX=S, LC=I, LR=I, SC=I, SR=I, PT=I]
Notes Pause the running macro to display information to user. This is not a recordable macro command; it does not appear in the UI. See the Fundamentals: Feedback topic for more information.
Application All
Parameters
Parameter Description Default
TX Text to display None
LR Location Row of upper left corner of dialog box -1
LC Location Column of upper left corner of dialog box -1
SR Size of dialog box in rows. Minimum height is 1 row, default is 4 rows. -1
SC Size of dialog box in columns. Minimum width is 30 columns, default is 40. -1
PT Pause time
Values: 0 = Single OK button, 1 = Two buttons, 2 or greater = delay time in seconds
0
Pe [To Top]
Feature PENCIL MILL
Command PENCIL[OA=D, TO=D, TI=D, ML=D, MA=D, MS=D, CSN=S, ASN=S]
Application FreeForm Machining
Parameters
Parameter Description Default
OA Finish Allowance (required) None
TO Out Tolerance (required) None
TI In Tolerance (required) None
ML Maximum Length (required) None
MA Minimum Angle (required) None
MS Maximum Stock (required) None
CSN Cut Surface group name None
ASN Avoid Surfaces group name None
Feature PLANAR CUTS
Command PLANAR[E1=I, E2=I, ZT=D, SV=D, BR=I, DV=D, OF=I, OA=D, VT=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 Mesh Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Mesh End Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
ZT Planar Z 0.0
SV Spacing Value (required) None
BR Background Refine
Values: 0 = Distance, 1 = Count, 2 = Out-Tol, 3 = N/C
3
DV Background Value None
OF Offset
Values: 0 = Positive, 1 = Negative, 2 = 0
2
OA Finish Allowance 0.0
VT Virtual mesh tolerance Modal
Feature PLANNER REMOVE UNREFERENCED
Command PLAN_ALL_REMOVE[LIST=I]
Notes Removes steps which are unreferenced in the process model or removes tools which are unused in any active steps.
Application All
Parameters
Parameter Description Default
LIST Which List to Clean (required)
Values: 1 = Step List, 2 = Tool List
None
Feature PLANNER ITEM MOVE
Command PLAN_ITEM_MOVE[WHICHLIST=I, WHICH=S, WHERE=I, DEST=S]
Notes Moves an item from one position in the list to another.
Application All
Parameters
Parameter Description Default
WHICHLIST Move item in which list (required)
Values: 1 = Step List, 2 = Tool List
None
WHICH Username of item to move (required)
Values: The Step Number for steps, Tool Number for tools
None
WHERE Where to put the item (required)
Values: 0 = After the item specified in the DEST variable, 1 = Beginning of list, 2 = End of list
None
DEST Location for move (if WHERE = 0)
Values: Step Number for steps, Tool Number for tools
None
Feature PLANNER REMOVE ITEM
Command PLAN_ITEM_REMOVE[LIST=I, USER=S]
Notes Removes the specified item from list, if it can be.
Application All
Parameters
Parameter Description Default
LIST Which list to remove item (required)
Values: 1 = Step List, 2 = Tool List
None
USER Item to be removed (required)
Values: Step Number or Tool Number
None
Feature PLANNER STEP SORT
Command PLAN_STEP_ORDER[TY=I, ST=I, IN=I]
Notes Sorts or renumbers the Step List.
Application All
Parameters
Parameter Description Default
TY Type of action (required)
Values: 0 = Sort by Process Model Order, 1 = Sort by Step Number, 2 = Renumber Step List, 3 = Sort by Operation/Tool Type, 4 = Sort by Tool Number
None
ST Step Number, for first step, when being renumbered.
Values: 1 to 9999
1
IN Step Number Increment, when steps are being renumbered
Values: 1 to 9999
1
Feature PLANNER TOOL SORT
Command PLAN_TOOL_ORDER[TY=I, ST=I, IN=I]
Notes Sorts or renumbers the Tool List.
Application All
Parameters
Parameter Description Default
TY Type of action (required)
Values: 0 = Sort by Step List Order, 1 = Sort by Process Model Order, 2 = Sort by Tool Number, 3 = Renumber Tool List, 4 = Sort by Tool Type
None
ST Tool Number, for first tool, when being renumbered
Values: 1 to 9999
1
IN Tool Number Increment, when tools are being renumbered
Values: 1 to 9999
1
Feature PLANE GROUP
Command PLANE_GRP[WP=S, AR=I]
Notes Selects all geometry on the selected plane.
Application All
Parameters
Parameter Description Default
WP Plane Name (required) None
AR Add/Remove
Values: 0 = Add, 1 = Remove
Modal
Po [To Top]
Feature POCKET
Command POCKET[TY=I, EL=I, XS=D, YS=D, WC=D, FA=D, AN=D, DC=D, FL=D, DS=D, DE=D, AR=D, RS=I, AC=D, RM=I, RT=D, IN=I, CC=I, CI=I, OP=I, EW=I, EP=I, RD=I, IP=I, IT=I, MB=I, MPX=D, MPY=D, MS=I, SWR=D, CS=I, SCR=D, SDWN=I, CO=I, AP=I]
Application Milling, Advanced Turning
Parameters
Parameter Description Default
TY Path Type
Values: 0 = Spiral, 1 = Zigzag, 2 = Linear, 3 = True Spiral, 4 = Morph, 5 = Part Offset Pattern
0
EL Boundary Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
XS User Start Point X None
YS User Start Point Y None
WC Width of Cut (required) None
FA Wall Allowance 0.0
AN Pass Angle 0.0
DC Depth of Cut (required) None
FL Floor Allowance 0.0
DS First Pass Level - depth (required) None
DE Final Pass Level - depth (required) None
AR Ramp Angle 90.0 (vertical)
RS Ramp From Start
Values: 0 = Off, use ramp angle, 1 = On, ramp from start point
0
AC Corner Roll Angle 60.0
RM Refine Curve Fit
Values: 0 = Off, 1 = On
0
RT Refine Curve Fit Tolerance 0.00005
IN Avoid Grouped Island
Values: 0 = Off, 1 = On
0
CC Climb Cut
Values: 0 = Conventional, 1 = Climb
0
CI Cut Inside Out
Values: 0 = Off (cut outside in), 1 = On
0
OP Overlap Pass Ends
Values: 0 = Off, 1 = On
0
EW Equal Width Passes
Values: 0 = Off, 1 = On
0
EP Equal Depth Passes
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels
Values: 0 = Off, 1 = On
0
IP Clean-up Pass
Values: 0 = None, 1 = First, 2 = Last
Modal
IT Island Pass
Values: 0 = Entire Level, 1 = Tops First, 2 = None, 3 = Tops Last
0
MB Morph Blend
Values: 0 = Inside, 1 = Outside, 2 = Both, 3 = None
0
MPX Morph Point X None
MPY Morph Point Y None
MS Smooth Path
Values: 0 = Off, 1 = Rough Only, 2 = Rough and Final
0
SWR Smooth Path Ratio 1.0
CS Smooth Connection
Values: 0 = Off, 1 = On
0
SCR Smooth Connection Ratio
Values: 2-6
3.0
SDWN Stay Down
Values: 0 = Off, 1 = On
0
CO Connect Passes
Values: 0 = Off, 1 = On
0
AP Alternate Passes
Values: 0 = Off, 1 = On
0
Feature POINT
Command POINT[XE=D, YE=D, XS=D, YS=D, AN=D, DS=D, LV=D, TSC=I, CO=I, SE=I]
Application All
Parameters
Parameter Description Default
XE Point X (Point Z for Turning) None
YE Point Y (Point D for Turning) None
XS Anchor Point X (Anchor Point Z for Turning) None
YS Anchor Point Y (Anchor Point D for Turning) None
AN Angle None
DS Distance None
LV Level Modal
TSC Tip (Turning only)
Values: 0 = Off, 1 = On
0
CO Project to Clear (not valid for Fabrication)
Values: 0 = Off, 1 = On
None
SE End solution designator
Values: 0 = +, 1 = -, 2 = N/A
2
Feature POLYBLEND
Command POLYBLEND[P1=I, P2=I]
Notes Variables P1 and P2 are polylines with an equal number of control knots. POLYBLEND creates a polyline that connects the start of P1 with the end of P2, averaging the distance between the two polylines. This means if the two source polylines have four knots, the generated polyline will attach to the first knot of P1, the 2nd knot will be 33% of the distance between the 2nd knots in polylines P1 and P2, the 3rd knot will be 66%, and the forth (and last) knot will attach to the end of P2.

This is not a recordable macro command, it does not have a UI.

Application All
Parameters
Parameter Description Default
P1 First Polyline (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
P2 Second Polyline (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature POLYLINE FROM POINTS
Command POINTPOLY[]
Notes Creates a polyline element from a sequence of points in the active group, using the current insert properties: step or layer, plane, and insert sequence. The new polyline has vertices corresponding to each point in the current group, in database order. There must be at least 2 points in the active group to use this macro command.

This is not a recordable macro command, there is no UI. There are no macro parameters for this macro command.

Application All
Feature POLY5X
Command POLY5X[CE=I, CL=<COORDLIST>]
Notes The coordinate data can be entered in-line or use a variable declared as a COORDLIST. Example:

COORDLIST[VN="XYUV", DM=4]
POLY5X[CE=I, CL={x,y,z,u,v,w, ... x,y,z,u,v,w}]

The COORDLIST definition must precede the POLY5X command, when defining the COORDLIST inline.

The DM parameter defaults to 4, when using macro record. DM=6 can also be used. Nulls in the coordinate list (commas with no data between) are assumed to be zeros.

Application Wire EDM
Parameters
Parameter Description Default
CE Close Ends
Values: 0 = No, 1 = Yes
0
CL Coordinate List
Values: A Coordinate List or variable declared as Coordinate List
None
Feature POLYARC FIT
Command See GROUP_POLYARC_FIT.
Feature POLYGON
Notes Implemented as a custom macro function. See the POLY.MCL macro file in your SYSMCL directory.

To incorporate in your macro, use MAC_EXE[] to call the shipped macro.

Application All
Feature POLYLINE
Command POLYLINE[CE=I, CL=<COORDLST>]
Notes The coordinate data can be entered in-line or use a variable declared as a COORDLIST. Example:

COORDLIST[VN="XYUV", DM=4]
POLY5X[CE=I, CL={x,y,z,u,v,w, ... x,y,z,u,v,w}]

The COORDLIST definition must precede the POLY5X command, when defining the COORDLIST inline.

The DM parameter defaults to 4, when using macro record. DM=6 can also be used. Nulls in the coordinate list (commas with no data between) are assumed to be zeros.

Application All
Parameters
Parameter Description Default
CE Close Ends
Values: 0 = No, 1 = Yes
0
CL Coordinate List (required)
Values: A Coordinate List or variable declared as Coordinate List.
None
Feature POLYLINE TO POINTS
Command POLYPOINT[]
Notes Creates points at the vertex nodes in a group of polylines. The points inherit the properties of the originating polylines. The original polyline is unchanged. Add polylines to the active group before running this macro command.

This is not a recordable macro command, it does not have a UI. There are no macro parameters for this macro command.

Application All
Feature POLYLINE THIN
Command POLYTHIN[TO=D, KP=I, MP=I]
Application All
Parameters
Parameter Description Default
TO Fit Tolerance None
KP Keep Original
Values: 0 = Off, 1 = On
None
MP Match Properties
Values: 0 = Off, 1 = On
None
Pr [To Top]
Feature PRINT DATA LIST
Command DUMP_LST[GP=I, OM=I, FN=S, OPEN=I]
Application All
Parameters
Parameter Description Default
GP Print What
Values: 0 = Entire File, 1 = Active Group
0
OM Output Method
Values: 0 = Printer, 1 = File
1
FN Filename (required for OM=1) None
OPEN Open Data File (used when OM=1) 0
Feature PRINT GRAPHICS
Command DUMP_GR[LM=D, TM=D, RM=D, BM=D, FIT=I, SF=D, LW=I, BW=I, ST=I]
Application All
Parameters
Parameter Description Default
LM Left Margin (required)
Values: Margin size in inches
None
TM Top Margin (required)
Values: Margin size in inches
None
RM Right Margin (required)
Values: Margin size in inches
None
BM Bottom Margin (required)
Values: Margin size in inches
None
FIT Scale or Fit to Page
Values: 0 = Scale, 1 = Fit to Page
0
SF Scale Value 1
LW Line Width
Values: Thickness of the line, the larger the number the thicker the lines.
1
BW Black Wireframe
Values: 0 = Off, 1 = On
0
ST Show tool
Values: 0 = None, 1 = Nibble, 2 = Draw End 2-D, 3 = Draw End 3-D
0
Feature PROCESS ENTRY
Command PROC_ENTRY[ENTM=I, AR=D, DFMN=D, DFMX=D]
Notes Used in conjunction with a wireframe adaptive roughing process to establish the desired axial entry into stock. The PROC_ENTRY command must be executed before executing an Adaptive Roughing PROC_GO command. The process entry settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
ENTM Entry Type (required)
Values: 0 = Plunge, 1 = Ramp, 2 = Helix
0
AR Ramp Angle
Values: 1.0 - 90.0
90.0
DFMN Min Helix Diameter Factor
Values: 0.0 is off, max 0.95
0.0
DFMX Max Helix Diameter Factor
Values: min must be > 0.0, max 0.95
0.95
Feature PROCESS GO FACE ADAPTIVE
Command PROC_GO_FACE_ADAPTIVE[]
Notes This macro executes the wireframe adaptive face process. This macro command must be preceded by the PROC_REG_DEPTHS, PROC_REG_FACE, PROC_PATT_ADAPTIVE, PROC_ENTRY, and PROC_RESTMILL macro commands. The PROC_REG_FACE command must use the TC=0 argument to specify part profile regions. Tool center regions are not supported for adaptive toolpath at this time.

There are no macro parameters for this macro command.

Adaptive Face Modular Macro Example:

PROC_REG_DEPTHS[ZSA=0, ZS=0.0, ZEA=0, ZE=0.0, CDM=3, EP=0, RD=0, DC=.75*jos(tl_len), FL=0.0]
PROC_REG_FACE[BNDN="Active", ISLN="None", WA=0.0, BC=0.1]
PROC_RESTMILL[RTYP=0, MTHD=0, NXTS=20, RTOL=0.0002, RCRC=0, OLYR=99, OGRP="Rest Mill"]
PROC_ENTRY[ENTM=2, AR=5.0, DFMN=0.25, DFMX=0.95]
PROC_PATT_ADAPTIVE[CC=1, MR=0.05, AP=0, LOH=0.01, MCD=5*jos(tl_dia), WC=.2*jos(tl_dia), WFCL=1.0, 
	WFCN=0.75, UAF=1, AFMF=0.5, CTOL=0.001, BOT=0.0]
PROC_GO_FACE_ADAPTIVE[]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Feature PROCESS GO OPEN PROFILE ADAPTIVE
Command PROC_GO_OPENPROFILE_ADAPTIVE[]
Notes This macro executes the wireframe adaptive open profile process. This command must be preceded by the PROC_REG_DEPTHS, PROC_REG_OPENPROFILE, PROC_PATT_ADAPTIVE, PROC_ENTRY, and PROC_RESTMILL macro commands. The PROC_REG_OPENPROFILE macro command must use the TC=0 argument to specify part profile regions. Tool center regions are not supported for adaptive toolpath at this time.

There are no macro parameters for this macro command.

Adaptive Open Profile Modular Macro Example:

PROC_REG_DEPTHS[ZSA=0, ZS=0.0, ZEA=0, ZE=0.0, CDM=3, EP=0, RD=0, DC=.75*jos(tl_len), FL=0.0]
PROC_REG_OPENPROFILE[PS=1, PE=3, MBND=4, WA=0.0, EXD=0.0, CAX=.5, CAY=1.5] PROC_RESTMILL[RTYP=0, MTHD=0, NXTS=20, RTOL=0.0002, RCRC=0, OLYR=99, OGRP="Rest Mill"] PROC_ENTRY[ENTM=2, AR=5.0, DFMN=0.25, DFMX=0.95] PROC_PATT_ADAPTIVE[CC=1, MR=0.05, AP=0, LOH=0.01, MCD=5*jos(tl_dia), WC=.2*jos(tl_dia), WFCL=1.0, WFCN=0.75, UAF=1, AFMF=0.5, CTOL=0.001, BOT=0.0] PROC_GO_OPENPROFILE_ADAPTIVE[]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Feature PROCESS GO POCKET ADAPTIVE
Command PROC_GO_POCKET_ADAPTIVE[]
Notes This macro executes the wireframe adaptive pocket process. This command must be preceded by the PROC_REG_DEPTHS, PROC_REG_POCKET, PROC_PATT_ADAPTIVE, PROC_ENTRY, and PROC_RESTMILL macro commands. PROC_REG_POCKET must use the TC=0 argument to specify part profile regions. Tool center regions are not supported for adaptive toolpath at this time.

There are no macro parameters for this macro command.

Adaptive Pocket Modular Macro Example:

PROC_REG_DEPTHS[ZSA=0, ZS=0.0, ZEA=0, ZE=0.0, CDM=3, EP=0, RD=0, DC=.75*jos(tl_len), FL=0.0]
PROC_REG_POCKET[BNDN="Active", ISLN="None", WA=0.0]
PROC_RESTMILL[RTYP=0, MTHD=0, NXTS=20, RTOL=0.0002, RCRC=0, OLYR=99, OGRP="Rest Mill"]
PROC_ENTRY[ENTM=2, AR=5.0, DFMN=0.25, DFMX=0.95]
PROC_PATT_ADAPTIVE[CC=1, MR=0.05, AP=0, LOH=0.01, MCD=5*jos(tl_dia), WC=.2*jos(tl_dia), 
	WFCL=1.0, WFCN=0.75, UAF=1, AFMF=0.5, CTOL=0.001, BOT=0.0]
PROC_GO_POCKET_ADAPTIVE[]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Feature PROCESS GO REGION ADAPTIVE
Command PROC_GO_REGION_ADAPTIVE[]
Notes This macro executes the wireframe adaptive region process. This macro command must be preceded by the PROC_REG_DEPTHS, PROC_REG_REGION, PROC_PATT_ADAPTIVE, PROC_ENTRY, and PROC_RESTMILL commands. The PROC_REG_REGION command must use the TC=0 argument to specify part profile regions. Tool center regions are not supported for adaptive toolpath at this time.

There are no macro parameters for this macro command.

Adaptive Region Modular Macro Example:

PROC_REG_DEPTHS[ZSA=0, ZS=0.0, ZEA=0, ZE=0.0, CDM=3, EP=0, RD=0, DC=.75*jos(tl_len), FL=0.0]
PROC_REG_REGION[GRPN="Active", WA=0.0]
PROC_RESTMILL[RTYP=0, MTHD=0, NXTS=20, RTOL=0.0002, RCRC=0, OLYR=99, OGRP="Rest Mill"]
PROC_ENTRY[ENTM=2, AR=5.0, DFMN=0.25, DFMX=0.95]
PROC_PATT_ADAPTIVE[CC=1, MR=0.05, AP=0, LOH=0.01, MCD=5*jos(tl_dia), WC=.2*jos(tl_dia), WFCL=1.0, 
	WFCN=0.75, UAF=1, AFMF=0.5, CTOL=0.001, BOT=0.0]
PROC_GO_REGION_ADAPTIVE[]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Feature PROCESS GO SOLID PLANAR ADAPTIVE
Command PROC_GO_SOLIDPLANAR_ADAPTIVE[]
Notes This macro executes the adaptive solid planar process. This command must be preceded by the PROC_REG_DEPTHS_SOLID, PROC_REG_SOLIDPLANAR, PROC_PATT_ADAPTIVE, and PROC_ENTRY macro commands.

There are no macro parameters for this macro command.

Adaptive Region Modular Macro Example:

PROC_REG_DEPTHS_SOLID[ZSA=0, ZS=0.0, ZEA=0, ZE=0.0, CDM=3, EP=0, RD=0, DC=.75*jos(tl_len), TC=0.0]
PROC_REG_SOLIDPLANAR[CTSN="Active", STKN="Active", CLOS=0, MXEX=0.0, ALW=0.0, AM=0, STL=0.0001, 
	FL=0.0, CP=0, SO=0, CSA=0]
PROC_ENTRY[ENTM=2, AR=5.0, DFMN=0.25, DFMX=0.95]
PROC_PATT_ADAPTIVE[CC=1, MR=0.05, AP=0, LOH=0.01, MCD=5*jos(tl_dia), WC=.2*jos(tl_dia), WFCL=1.0, 
	WFCN=0.75, UAF=1, AFMF=0.5, CTOL=0.001, BOT=0.0]
PROC_GO_SOLIDPLANAR_ADAPTIVE[]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Feature PROCESS GO SOLID POCKET ADAPTIVE
Command PROC_GO_SOLIDPOCKET_ADAPTIVE[]
Notes This macro executes the adaptive solid pocket process. This macro command must be preceded by the PROC_REG_DEPTHS_SOLID, PROC_REG_SOLIDPOCKET, PROC_PATT_ADAPTIVE, and PROC_ENTRY commands.

There are no macro parameters for this macro command.

Adaptive Region Modular Macro Example:

PROC_REG_DEPTHS_SOLID[ZSA=0, ZS=0.0, ZEA=0, ZE=0.0, CDM=3, EP=0, RD=0, DC=.75*jos(tl_len), TC=0.0]
PROC_REG_SOLIDPOCKET[CTSN="Active", ALW=0.0, AM=0, STL=0.0001, FL=0.0]
PROC_ENTRY[ENTM=2, AR=5.0, DFMN=0.25, DFMX=0.95]
PROC_PATT_ADAPTIVE[CC=1, MR=0.05, AP=0, LOH=0.01, MCD=5*jos(tl_dia), WC=.2*jos(tl_dia), WFCL=1.0, 
	WFCN=0.75, UAF=1, AFMF=0.5, CTOL=0.001, BOT=0.0]
PROC_GO_SOLIDPOCKET_ADAPTIVE[]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Feature PROCESS PATTERN ADAPTIVE
Command PROC_PATT_ADAPTIVE[CC=I, MR=D, AP=I, LOH=D, MCD=D, WC=D, WFCL=D, WFCN=D, CTOL=D, UAF=I, AFMF=D, BOT=D]
Notes Used in conjunction with a wireframe adaptive roughing process to specify the adaptive pattern cut parameters. The PROC_PATT_ADAPTIVE macro command must be executed before executing an Adaptive Roughing PROC_GO_* statement. The adaptive pattern cut parameters are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
CC Climb Cut
Values: 0 = Conventional, 1 = Climb
1
MR Minimum Radius
None
AP Alternate Passes
Values: 0 = Unidirectional, 1 = Bidirectional
0
LOH Lift Off Height
0.001
MCD Maximum Connection Distance None
WC Maximum Width of Cut None
WFCL Climb WOC Factor
Values: min must be > 0.0, max <= 1.0
1.0
WFCN Conventional WOC Factor
Values: min must be > 0.0, max <= 1.0
1.0
CTOL Floor Allowance 0.0
UAF Use Adaptive Feeds
Values: 0 = Off, 1 = On
0
AFMF Adaptive Feed Minimum Factor
Values: 0.05-0.9
0.9
BOT Breakthru Overlap Factor 0.0
Feature PROCESS REGION DEPTHS
Command PROC_REG_DEPTHS[DC=D, ZSA=I, ZS=D, ZEA=I, ZE=D, CDM=I, EP=I, RD=I, FL=D]
Notes Used in conjunction with a wireframe adaptive roughing process to specify the depth levels to be cut, and the related depth behaviors. The PROC_REG_DEPTHS command must be executed before executing the Adaptive Roughing PROC_REG_POCKET, PROC_REG_FACE, PROC_REG_OPENPROFILE, or PROC_REG_REGION commands. The depths settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
DC Depth of Cut (required)
Values: must be > 0.0
None
ZSA Start Z Level Active
Values: 0 = Off, 1 = On
0
ZS Start Z Level
Values: must be >= End Z Level
0.0
ZEA End Z Level Active
Values: 0 = Off, 1 = On
0
ZE End Z Level
Values: must be <= Start Z Level
0.0
CDM Critical Depths Mode
Values: 0 = None, 1 = Entire Level, 2 = Island Tops First, 3 = Island Tops Last
0
EP Equalize Depth Passes
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels
Values: 0 = Off, 1 = On
1
FL Floor Allowance 0.0
Feature PROCESS REGION DEPTHS SOLID
Command PROC_REG_DEPTHS_SOLID[ZSA=I, ZS=D, ZEA=I, ZE=D, CDM=I, EP=I, RD=I, DC=D, TC=D]
Notes Used in conjunction with a solid adaptive roughing process to specify the depth levels to be cut, and the related depth behaviors. The PROC_REG_DEPTHS_SOLID command must be executed before executing the Adaptive Roughing PROC_REG_SOLIDPOCKET, or PROC_REG_SOLIDPLANAR macro commands. The depths settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
ZSA Start Z Level Active
Values: 0 = Off, 1 = On
0
ZS Start Z Level
Values: must be >= End Z Level
0.0
ZEA End Z Level Active
Values: 0 = Off, 1 = On
0
ZE End Z Level
Values: must be <= Start Z Level
0.0
CDM Critical Depths Mode
Values: 0 = None, 1 = Entire Level, 2 = Island Tops First, 3 = Island Tops Last
0
EP Equalize Depth Passes
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels
Values: 0 = Off, 1 = On
1
DC Depth of Cut (required)
Values: must be > 0.0
0.0
TC Thru Clearance 0.0
Feature PROCESS REGION FACE
Command PROC_REG_FACE[BNDN=S, ISLN=S, WA=D, BC=D]
Notes Used in conjunction with the wireframe adaptive roughing Face process to create face regions from an input boundary group, and optional island group. The PROC_REG_FACE command must be preceded by the PROC_REG_DEPTHS command and executed before executing the PROC_GO_FACE_ADAPTIVE statement. The face process region settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
BNDN Boundary Group Name (required) None
ISLN Island Group Name (required) None
WA Wall Allowance 0.0
BC Boundary Clearance 0.0
Feature PROCESS REGION OPEN PROFILE
Command PROC_REG_OPENPROFILE[PS=I, PE=I, MBND=I, WA=D, EXD=D, CAX=D, CAY=D]
Notes Used in conjunction with the wireframe adaptive roughing Open Profile process to create open profile regions from an input part profile, and a stock boundary profile. The PROC_REG_OPENPROFILE command must be preceded by the PROC_REG_DEPTHS command and executed before executing the adaptive roughing PROC_GO_OPENPROFILE_ADAPTIVE statement. The open profile process region settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
PS Profile Start Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PE Profile End Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
MBND Material Boundary Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
WA Wall Allowance 0.0
EXD Extension Distance 0.0
CAX Cut Area Point X None
CAY Cut Area Point X None
Feature PROCESS REGION POCKET
Command PROC_REG_POCKET[BNDN=S, ISLN=S, WA=D]
Notes Used in conjunction with the wireframe adaptive roughing Pocket process to create pocket regions from an input boundary group, and optional island group. The PROC_REG_POCKET command must be preceded by the PROC_REG_DEPTHS command and executed before executing the PROC_GO_POCKET_ADAPTIVE command. The pocket process region settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
BNDN Boundary Group Name (required) None
ISLN Island Group Name (required) None
WA Wall Allowance 0.0
Feature PROCESS REGION REGION
Command PROC_REG_REGION[GRPN=S, WA=D]
Notes Used in conjunction with the wireframe adaptive roughing Region process to create regions from an input region group. The PROC_REG_REGION command must be preceded by the PROC_REG_DEPTHS command and executed before executing the PROC_GO_REGION_ADAPTIVE command. The region process region settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
GRPN Region Group Name (required) None
WA Wall Allowance 0.0
Feature PROCESS REGION SOLID PLANAR
Command PROC_REG_SOLIDPLANAR[CTSN=S, STKN=S, CLOS=I, MXEX=D, ALW=D, AM=I, STL=D, FL=D, CP=I, SO=D, CSA=I]
Notes Used in conjunction with the adaptive roughing Solid Planar process to create planar regions from an input cut surface group and stock boundary profile group. The PROC_REG_SOLIDPLANAR macro command must be preceded by the PROC_REG_DEPTHS_SOLID command and called before executing the PROC_GO_SOLIDPLANAR_ADAPTIVE macro command. The solid planar process region settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
CTSN Cut Surface Group Name (required) None
STKN Stock Boundary Group Name (required) None
CLOS Closure Method (required)
Values: 0 = Shortest Distance, 1 = Extend Tangentially
None
MXEX Maximum Extension None
ALW Wall Allowance 0.0
AM Allowance Mode (required)
Values: 0 = 2D, 1 = 3D
None
STL Surface Tolerance None
FL Floor Allowance 0.0
CP Closed Profiles Only
Values: 0 = Off, 1 = On
0
SO Stock Offset 0.0
CSA Clear Stock Above
Values: 0 = Off, 1 = On
0
Feature PROCESS REGION SOLID POCKET
Command PROC_REG_SOLIDPOCKET[CTSN=S, ALW=D, AM=I, STL=D, FL=D]
Notes Used in conjunction with the adaptive roughing Solid Pocket process to create pocket regions from an input cut surface group. PROC_REG_SOLIDPOCKET must be preceded by the PROC_REG_DEPTHS_SOLID macro and called before PROC_GO_SOLIDPOCKET_ADAPTIVE. The solid pocket process region settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
CTSN Cut Surface Group Name (required) None
ALW Wall Allowance 0.0
AM Allowance Mode (required)
Values: 0 = 2D, 1 = 3D
None
STL Surface Tolerance (required) None
FL Floor Allowance 0.0
Feature PROCESS REST MILL
Command PROC_RESTMILL[RTYP=I, MTHD=I, NXTS=I, RTOL=D, RCRC=I, OLYR=I, OGRP=S]
Notes Used in conjunction with a wireframe adaptive roughing process to output rest mill region sets that can be used by the Adaptive - Region Rough, or Rough - Region Rough processes. The PROC_RESTMILL macro command must be executed before executing the Adaptive Roughing PROC_GO_* command. The rest mill output settings are modal, once set you do not need to call the macro command again unless the parameters need to be changed.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
RTYP Region Type (required)
Values: 0 = None, 1 = Tool Center, 2 = Part Profile
0
MTHD Computation Method
Values: 0 = Theoretical, 1 = Actual
0
NXTS Next Step 10
RTOL Region Tolerance 0.00005
RCRC Consider Tool Corner Radius
Values: 0 = Off, 1 = On
0
OLYR Output Layer 1
OGRP Output Group None
Feature PROFILE CONTEXT CLOSE
Command PROF_CONTEXT_CLOSE[]
Notes This function closes open Profile contexts, solves the profile, and writes the geometry to the current Process Model. This command is recorded when the user clicks on the "Go" button on the Profile control panel.

The related PROF_CONTEXT_OPEN[] creates the profile context.

There are no macro parameters for this command.

Application All
Feature PROFILE CONTEXT OPEN
Command PROF_CONTEXT_OPEN[]
Notes This command is used whenever a profile start-point is established; or, in the absence of a start-point, when the first profile element is fully defined.

Profile lines and arcs are buffered until the entire profile is solved and the user clicks on the panel's Go button. This command starts the Profile context. The related PROF_CONTEXT_CLOSE[] closes the context and creates the profile.

There are no macro parameters for this command.

Application All
Feature PROFILE DELETE
Command PROFILE_DELETE[EL=I]
Notes Deletes the profile that the provided element is part of. Profiles include wireframe profiles, hole sequences, or compound holes.
Application All
Parameters
Parameter Description Default
EL Element in Profile to Delete (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature PROFILE DIVIDE
Command PROFDIVIDE[E1=I, E2=I, CN=I]
Notes Converts a profile into a polyline that has a specified number of control points. Inserts polyline at insert position, using current workplane, and tool or layer. It does not alter the original profile. Valid profile element types include: line, arc, ellipse, polyline, and spline.
Application All
Parameters
Parameter Description Default
E1 Start of Profile Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 End of Profile Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
CN Count of Points in Resulting Polyline (required) None
Feature PROFILE ERASE
Command PROF_ERASE[]
Notes When creating a profile, using Create - Geometry - Profile, erases the current pending element in the active profile. It is recorded when the user clicks on the "Erase" button on the Profile control panel.

Related to PROF_CONTEXT_OPEN[], PROF_CONTEXT_CLOSE[], START_PROF[], LINE_PROF[], and ARC_PROF[].

There are no macro parameters for this command.

Application All
Feature PROFILE EXTEND
Command PROF_EXTEND[ME=I, SE=I, EL=I, TY=I, TO=D, LDS=D, LDE=D, ADS=D, ADE=D, AAS=D, AAE=D]
Application All
Parameters
Parameter Description Default
ME Extend Method (required)
Values: 0 = Distance, 1 = To Profile
None
SE Extend Side
Values: 0 = Both, 1 = Start, 2 = End
0
EL Extend to Profile
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
TY 3D Toggle
Values: 0 = Off (2D), 1 = On (3D)
0
TO Intersect Tolerance. Only used when TY is set to 3D. 0.1
LDS Line Start Distance 0.0
LDE Line End Distance 0.0
ADS Arc Start Distance 0.0
ADE Arc End Distance 0.0
AAS Start Angle 0.0
AAE End Angle 0.0
Feature PROFILE GROUP
Command PROF_GRP[EL=I, AR=I]
Application All
Parameters
Parameter Description Default
EL Element in Profile (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
AR Add/Remove
Values: 0 = Add, 1 = Remove
Modal
Feature PROFILE ROUGH (Fabrication)
Command FPROFILE_V15[PI=I, PS=I, PE=I, RV=I, CS=I, FA=D, AC=D, RS=I, TF=I, TT=D]
Notes Command is preceded by a LEAD_PARAMS[] command.
Application Fabrication
Parameters
Parameter Description Default
PI Profile Input
Values: 0 = Whole, 1 = Partial, 2 = Group
1
PS Profile/Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PE End Element (required when PI=1)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
RV Complement (required)
Values: 0 = Off, 1 = On
None
CS Offset Side (required)
Values: 0 = Left, 1 = Right, 2 = None
None
FA Finish Allowance Modal
AC Corner Roll Angle (required) None
RS Roll Short Segments
Values: 0 = Off, 1 = On
1
TF Refine Curve Fit (required)
Values: 0 = Off, 1 = On
None
TT Refine Curve Fit Tolerance (required) None
Feature PROFILE ROUGH (Milling)
Command MPROFILE_V15[PI=I, PS=I, PE=I, RV=I, CS=I, WS=D, WA=D, WC=D, PT=D, LV=D, FA=D, DC=D, CM=I, CO=I, PM=I, RM=I LD=D, OD=D, CL=D, AC=D, RS=I, TF=I, TT=D, MB=I, MS=I, SWR=D]
Notes Command is preceded by a LEAD_PARAMS[] command.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
PI Profile Input
Values: 0 = Whole, 1 = Partial, 2 = Group
1
PS Profile/Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PE End Element (required when PI=1)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
RV Complement (required)
Values: 0 = Off, 1 = On
None
CS Offset Side (required)
Values: 0 = Left, 1 = Right, 2 = None
None
WS Wall Stock None
WA Wall Allowance None
WC Width of Cut (required) None
PT Profile Top (required) None
LV Level (required) None
FA Floor Allowance (required) None
DC Depth of Cut (required) None
CM Cut Method (required)
Values: 0 = One way, 1 = Alternate, 2 = Connect, 3 = Morph / Ramp
None
CO Cut Order (required)
Values: 0 = Width first, 1 = Depth first
None
PM Plunge From (required)
Values: 0 = Prof Top, 1 = Previous, 2 = None
None
RM Retract To (required)
Values: 0 = Clear Plane, 1 = Check Distance
None
LD Infeed Distance (required) None
OD Outfeed Distance (required) None
CL Clear Plane (required) None
AC Corner Roll Angle (required) None
RS Roll Short Segments
Values: 0 = Off, 1 = On
1
TF Refine Curve Fit (required)
Values: 0 = Off, 1 = On
None
TT Refine Curve Fit Tolerance (required) None
MB Morph Blend
Values: 0 = Inside, 1 = Outside, 2 = Both, 3 = None
3
MS Smooth Path
Values: 0 = Off, 1 = Rough Only, 2 = Rough and Final
0
SWR Smooth Path Ratio 1.0
Feature PROFILE ROUGH (Turning)
Command TPROFILE_V15[PS=I, PE=I, XF=D, ZF=D, FC=I, LA=D, TA=D, CD=D, LD=D, OD=D, BD=D, BP=I, TP=I, LY=I, AC=D, RS=I, TF=I, TT=D]
Notes Command is preceded by a LEAD_PARAMS[] command.
Application Turning
Parameters
Parameter Description Default
PS Part Profile Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PE Part Profile End Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
XF Z Finish Allowance (required) None
ZF Z Finish Allowance (required) None
FC Facing (required)
Values: 0 = Off, 1 = On
None
LA Effective Leading Edge Angle (required) None
TA Effective Trailing Edge Angle (required) None
CD Clearance Distance (required) None
LD Infeed Distance (required) None
OD Outfeed Distance 0.0
BP Bidirectional Passes (required)
Values: 0 = Off, 1 = On
None
BD Back-off Distance (required) None
TP Create TPP - Theoretical Part Profile (required)
Values: 0 = Off, 1 = On
None
LY TPP Layer (required)
Values: 1 - 9999
None
AC Corner Roll Angle 0.0
RS Roll Short Segments
Values: 0 = Off, 1 = On
0
TF Refine Curve Fit
Values: 0 = Off, 1 = On
0
TT Refine Curve Fit Tolerance 0.0
Feature PROFILE SEQUENCE
Command PROF_SEQ[BA=I, EL=I, ME=I]
Application All
Parameters
Parameter Description Default
BA Before/After
Values: 0 = Before, 1 = After
0
EL Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
ME Match Element
Values: 0 = Off, 1 = On
Modal
Feature PROFILE START
Command PROF_START[EL=I]
Application All
Parameters
Parameter Description Default
EL Element in Profile (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
Feature PROFILE TRIM
Command PROF_TRIM[XS=D, YS=D, TO=D]
Application All
Parameters
Parameter Description Default
XS X Start (required) None
YS Y Start (required) None
TO Tolerance 0.001
Feature PROJECT
Command PROJECT[TY=I, E1=I, E2=I, OF=I, OA=D, DE=D, VT=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
TY Project Type
Values: 0 = Plane, 1 = Cone, 2 = Sphere, 3 = Mesh
3
E1 Generator / Mesh Start (required) None
E2 Director / Mesh End (required) None
OF Offset Side
Values: 0 = Positive, 1 = Negative, 2 = 0
2
OA Offset Amount 0.0
DE Explode Distance 0.01
VT Virtual Mesh Tolerance Modal
Feature PROJECT (Advanced Wire EDM only)
Command PROJECT[TY=I, E1=S, E2=S, OF=I, OA=D]
Application Wire EDM
Parameters
Parameter Description Default
TY Project Type
Values: 0 = Plane (currently only type)
0
E1 Generator (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Director (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
OF Offset Side
Values: 0 = Positive, 1 = Negative, 2 = Zero
2
OA Offset Amount 0.0
Feature PROJECTED (Surface Machine)
Command PROJECTED[OA=D, TO=D, TI=D, CF=I, BG=I, SS=I, RU=I, LU=I, LN=S, CSN=S, ASN=S, PEN=S, UA=I, AA=D]
Application FreeForm Machining
Parameters
Parameter Description Default
OA Finish Allowance (required) None
TO Out Tolerance (required) None
TI In Tolerance (required) None
CF Clear/Feed
Values: 0 = Absolute, 1 = Incremental, 2 = Straight
None
BG Bridge Gaps
Values: 0 = Straight, 1 = Clear/feed
None
SS Surface Side
Values: 0 = Off, 1 = On
0
RU Roll Edges
Values: 0 = Off, 1 = On
0
LU Use Log File
Values: 0 = Off, 1 = On
0
LN Log Filename None
CSN Cut Surfaces Group Name None
ASN Avoid Surfaces Group Name None
PEN Project Elements Group Name None
UA Allowance Type
Values: 0 = Use Finish Allow, 1 = Specify
0
AA Avoidance Allowance Value 0.0
Feature PROMPT
Command PROMPT[TX=S, VN=S, LC=I, LR=I, SC=I, SR=I, DV=I]
Application All
Parameters
Parameter Description Default
TX Text to Display None
VN Variable Name (required) None
LR Location row of upper left corner of dialog -1
LC Location column of upper left corner of dialog -1
SR Size of dialog in rows -1
SC Size of dialog in columns -1
DV Display variable options
Values: 0 = Off, 1 = On (variable name displayed in text)
0
Feature PROPERTY CHANGE: HOLE FEATURE
Command PCHG_HF[TY=I, LY=I, LV=D, DIAM=D, TA=D, DEPTH=D, BT=I, RD=I]
Application Milling, Advanced Turning
Parameters
Parameter Description Default
TY Type
Values: 0 = N/C (No Change), 1 = Hole, 2 = Point
0
LY Layer N/C
LV Level N/C
DIAM Diameter N/C
TA Taper Angle N/C
DEPTH Depth N/C
BT Bottom Type
Values: 0 = N/C, 1 = Thru Hole, 2 = Blind Hole, 3 = Fillet Hole, 4 = Round Hole
0
RD Reverse Hole Direction
Values: 0 = No, 1 = Yes
0
Feature PROPERTY CHANGE: HOLE/POINT (Non-JOS)
Command PCHG_HP[TY=I, TL=I, LV=D, CN=I, AN=D, CL=D, PK=I, TD=D, RD=I]
Application All
Parameters
Parameter Description Default
TY Type
Values: 0 = N/C (No Change), 1 = Hole, 2 = Point
0
TL Tool N/C
LV Level N/C
CN Clear On
Values: 0 = Off, 1 = On, 2 = N/C
2
AN Tool Angle (Fabrication Only) N/C
CL Clear (Not valid for Fabrication) N/C
PK Peck (Not valid for Fabrication)
Values: 0 = Off, 1 = On, 2 = N/C
2
TD Tip depth, computed from Spot diameter or Full depth. (Not valid for Fabrication) N/C
RD Reverse Hole Direction (Not valid for Fabrication)
Values: 0 = Off, 1 = On
0
Feature PROPERTY CHANGE: HOLES/POINTS (JOS)
Command PCHG_JHP[TY=I, ST=I, LV=D, CN=I, CL=D, TD=D, PK=I, RD=I]
Application Milling, Turning, Wire EDM
Parameters
Parameter Description Default
TY Type
Values: 0 = N/C (No Change), 1 = Hole, 2 = Point
0
ST Step N/C
LV Level N/C
CL Clear N/C
CN Clear On
Values: 0 = Off, 1 = On, 2 = N/C
2
PK Peck
Values: 0 = Off, 1 = On, 2 = N/C
2
TD Tip depth (computed from Spot diameter or Full depth) N/C
RD Reverse Hole Direction
Values: 0 = No, 1 = Yes
0
Feature PROPERTY CHANGE: LAYERS
Command PCHG_LY[LY=I, LV=D, PN=I, PT=D]
Application All
Parameters
Parameter Description Default
LY Layer N/C
LV Z Level. Leave blank to keep existing Level. None
PN Change the Profile Top value?
Values: 2 = N/C (No Change), 0 = Off (no Profile Top), 1 = On
2
PT Profile Top None
Feature PROPERTY CHANGE: SURFACES
Command PCHG_SURFACES[CG=I, SU=I, SV=I, ST=D, RN=I, MS=I]
Application All
Parameters
Parameter Description Default
CG Change Grid
Values: 0 = No, 1 = Yes
1
SU U Surface Grid Count (required)
Values: integer greater than 0
None
SV V Surface Grid Count (required)
Values: integer greater than 0
None
ST Curve Tolerance for Grid Lines (required)
Values: decimal number greater than 0.0
None
RN Reverse Normals
Values: 0 = No, 1 = Yes
0
MS Exclude Multi-surface Bodies
Values: 0 = No, 1 = Yes
0
Feature PROPERTY CHANGE: TOOLPATH (Non-JOS)
Command PCHG_TP[TL=I, LV=D, PN=I, PT=D, OF=I, CN=I, CL=D]
Application All
Parameters
Parameter Description Default
TL Tool N/C
LV Level N/C
PN Prof Top On
Values: 0 = Off, 1 = On, 2 = N/C (No Change)
2
PT Prof Top Value N/C
OF Offset
Values: 0 = Left, 1 = Right, 2 = None, 3 = N/C
3
CN Clear on (Not valid for Fabrication)
Values: 0 = Off, 1 = On, 2 = N/C
2
CL Clear Value (Not valid for Fabrication) N/C
Feature PROPERTY CHANGE: TOOLPATH (JOS)
Command PCHG_ST[ST=I, LV=D, PN=I, PT=D, OF=I, CN=I, CL=D, FT=I, FO=I, FD=D]
Application All
Parameters
Parameter Description Default
ST Step N/C
LV Level N/C
PN Prof Top On
Values: 0 = Off, 1 = On, 2 = N/C (No Change)
2
PT Prof Top value N/C
OF Offset
Values: 0 = Left, 1 = Right, 2 = None, 3 = N/C
3
CN Clear On (Not valid for Fabrication)
Values: 0 = Off, 1 = On, 2 = N/C
2
CL Clear Value (Not valid for Fabrication) N/C
FT Feed Entity Type
Values: 0 = N/C, 1 = Primary Path, 2 = Ramp, 3 = Fast Return
0
FO Feed Override Type
Milling/Turning Values: 0 = N/C, 1 = None, 2 = UPR, 3 = UPM, 4 = UPT, 5 = Factor
Fabrication/Wire EDM Values: 0 = N/C, 1 = None, 2 = Unit Feed, 3 = Factor
0
FD Feed Rate Value (entered in units matching Feed Type) None
Feature PROPERTY CHANGE: WORKPLANE
Command PCHG_WP[WP=S]
Application All
Parameters
Parameter Description Default
WP Workplane Name (required) None
Feature PUNCH SURFACE
Command SRF_PUNCH[OS=I, PP=I, PD=D]
Application FreeForm Machining
Parameters
Parameter Description Default
OS Element Number of Surface to Edit (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PP Profile Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PD Distance 1000.0
Q [To Top]

No macro commands in this section.

R [To Top]
Feature RANGE DELETE
Command RANGE_DELETE[EL1=I, EL2=I]
Notes Deletes the range of elements, bounded by the element numbers entered for EL1 and EL2.
Application All
Parameters
Parameter Description Default
EL1 Start of Range Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
EL2 End of Range Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature RANGE GROUP
Command RANGE_GRP[E1=I, E2=I, AR=I]
Application All
Parameters
Parameter Description Default
E1 Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 End Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
AR Add/Remove
Values: 0 = Add, 1 = Remove
Modal
Feature READ
Notes See OPEN.
Feature READOUT
Command READOUT[TX=S, TO=D]
Notes Pauses the macro execution, displays a message in the read-out line and waits for a key to be pressed to continue. Useful in providing information to user when a macro is running and making sure they have time to view it. Also useful in debugging macros.

The Time Out (TO) option displays the message and then waits the provided number of seconds, before beginning to run again. Other SmartCAM functions send information to the readout line, so your message could be replaced. Using a Time Out allows the message to be displayed for some given period of time and then the macro continues to run - without a key press being required.

Application All
Parameters
Parameter Description Default
TX Text to Display
If no text is provided, displays "Macro paused. Press a key to continue...".
None
TO Sets a timeout, in seconds. When set to 0, the command works the same as not having TO at all - it waits for a key press to continue. When set to a postive non-zero number of seconds, the message will be displayed and the macro will pause for the given amount of time. Then the macro will continue to run.

Fractional seconds are allows. So you can set the Time Out to 0.5 - and wait a half a second.

None
Feature READOUT_MSG
Command READOUT[TX=S]
Notes Displays the text message string on the SmartCAM Readout Line (on the bar at the bottom of the application window). Unlike the READOUT[], command, READOUT_MSG[] will display the text and continue to run the macro. It will not wait for a key click for a time out to continue.

Useful in debugging as it allows a message to be displayed and the macro continues to run without a pause. The comparative drawback is that other SmartCAM functions use the read out line, so the displayed message may only be displayed very briefly.

Application All
Parameters
Parameter Description Default
TX Short message string to display on Readout bar. An empty string will clear any message currently on the readout bar. None
Feature RECTANGLE
Notes Implemented as a custom macro function. See the RECT.MCL macro file in your SYSMCL directory.

To incorporate in your macro, use MAC_EXE[] to call the shipped macro.

Application All
Feature REDRAW
Command REDRAW[]
Notes Redraws the graphics view. There are no macro parameters for this command.
Application All
Feature REFINE MESH
Command REFINE[E1=I, E2=I, SP=I, DI=I, SV=D, DV=D, KO=I, CD=I, CM=I]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 Mesh Start Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Mesh End Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
SP Spacing
Values: 0 = Distance, 1 = Count, 2 = Cusp Hgt, 3 = N/C
3
DI Division
Values: 0 = Distance, 1 = Count, 2 = Mid-Tol, 3 = N/C
3
SV Spacing Value (required) None
DV Division Value (required) None
KO Keep Original
Values: 0 = Off, 1 = On
0
CD Change Cut Direction
Values: 0 = Off, 1 = On
0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
Feature REGION ROUGH - OPTIONS
Command REGIONROUGH_OPTS[AC=D, RM=I, RT=D, CL=I, CI=I, OP=I, EW=I, EP=I, RD=I, IP=I, ICI=I, CO=I, AP=I, CT=I, GC=D, SDWN=I, MB=I, MS=I, SWR=D, CS=I, SCR=D]
Notes The Region Rough Options macro command should come before the REGIONROUGH[] command, in order to set the Region Rough's Option parameters before the roughing routine is called. The Options are modal, once set you do not need to call the macro command again unless the parameters change.
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
AC Corner Roll Angle 60.0
RM Thinning
Values: 0 = Off, 1 = On
0
RT Thinning Tolerance (Available when RM=1) 0.00005
CL Climb Cut
Values: 0 = Off, 1 = On
0
CI Spiral Inside Out
Values: 0 = Off, 1 = On
0
OP Overlap Pass Ends
Values: 0 = Off, 1 = On
0
EW Equal Width Passes
Values: 0 = Off, 1 = On
0
EP Equal Depth Passes
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels
Values: 0 = Off, 1 = On
0
IP Clean-up Pass
Values: 0 = None, 1 = First, 2 = Last
0
ICI Invert Spiral Dir
Values: 0 = Off, 1 = On
0
CO Connect Passes (required)
Values: 0 = Off, 1 = On
None
AP Alternate Passes (required)
Values: 0 = Off, 1 = On
None
CT Connections
Values: 0 = Follow, 1 = Linear, 2 = Arc
1
GC Gap Closure 0.0
SDWN Stay Down
Values: 0 = Off, 1 = On
0
MB Morph Blend
Values: 0 = Inside, 1 = Outside, 2 = Both, 3 = No Blend
3
MS Smooth Path
Values: 0 = Off, 1 = Rough only, 2 = Rough and Final
0
SWR Smooth Path Ratio 1.0
CS Smooth Connection
Values: 0 = Off, 1 = On
0
SCR Smooth Connection Ratio
Values: 2-6
3.0
Feature REGION ROUGH
Command REGIONROUGH[TY=I, WC=D, DC=D, AN=D, FA=D, FL=D, AR=D]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
TY Path Type (required)
Values: 0 = Spiral, 1 = Zigzag, 2 = Linear, 5 = Part Offset
None
WC Width of Cut (required) None
DC Depth of Cut (required) None
AN Pass Angle (required)
Available when TY set to 1 or 2
None
FA Finish Allowance 0.0
FL Floor Allowance (required) None
AR Ramp Angle (required) None
Feature REST MILL PARAMS
Command PROCESS_REST_PARAMS[RTYP=I, MTHD=I, NXTS=I, RTOL=D, RCRC=I, OLYR=I, OGRP=S]
Notes Used in conjunction with a wireframe roughing process to output rest mill region sets that can be used by Region Rough. The Region Rough Options macro command should come before the process macro command, in order to set the Rest Mill parameters before the roughing routine is called. The Options are modal, once set you do not need to call the macro command again unless the parameters change.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
RTYP Region Type (required)
Values: 0 = None, 1 = Tool Center, 2 = Part Profile
0
MTHD Computation Method
Values: 0 = Theoretical, 1 = Actual
0
NXTS Next Step 10
RTOL Region Tolerance .00005
RCRC Consider Tool Corner Radius
Values: 0 = Off, 1 = On
0
OLYR Output Layer 1
OGRP Output Group None
Feature REST MILL REGION
Command REGION_RESTMILL[PRV=I, NXT=I, LR=I, FA=D, TOL=D, SO=D, CRC=I, TY=I]
Notes Used to create region sets that can be used by Region Rough.
Application Milling, Advanced Turning
Parameters
Parameter Description Default
PRV Previous Step (required) None
NXT Next Step None
LR Profile Side (required)
Values: 0 = Left, 1 = Right
None
FA Finish Allowance 0.0
TOL Tolerance 0.00005
SO Stock Offset 0.0
CRC Consider Prev Tool C-Rad
Values: 0 = Off, 1 = On
0
TY Region Type
Values: 0 = Next Tool Center, 1 = Part Profile
0
Feature REMOVE SYNCH
Command REMOVE_SYNCH[EL=I]
Application Advanced Turning
Parameters
Parameter Description Default
EL Wait Element to Remove (required) None
Feature GROUP REMOVE (SYNCH)
Command GROUP_REMOVE[]
Notes There are no macro parameters for this command.

Used to remove all 4-Axis Synchronization element pairs from the current group.

Application Advanced Turning
Feature REMOVE UNUSED LAYERS
Command REMOVE_UNUSED_LAYERS[]
Notes No parameters for this macro command. Removes all unused layers, where an unused layer is a layer without assigned geometry, but it could have a Layer Name. The current active layer (On Layer) and Layer 1 are preserved.
Application All
Feature REMOVE LINKS
Command REM_LINK[P1=I, P2=I, S1=I, S2=I, EL=I, RC=I]
Application Wire EDM
Parameters
Parameter Description Default
P1 Primary Range Start Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
P2 Primary Range End
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S1 Secondary Range Start
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S2 Secondary Range End
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
EL Link Element to Delete
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
RC Delete Choice
Values: 0 = Range, 1 = Element
0
Feature REMOVE SUB
Command SUB_REMOVE[NN=S]
Application All
Parameters
Parameter Description Default
NN Subroutine Name (required)
Use "*" as the subroutine name to remove all unused subroutines. Example:
SUB_REMOVE[NN="*"]
None
Feature REPOSITION
Command REPO[XE=D, YE=D, DS=D, HD=I]
Application Fabrication
Parameters
Parameter Description Default
XE Hold Down Point X Value (required) None
YE Hold Down Point Y Value (required) None
DS X Reposition (required) None
HD Drag Tool
Values: 0 = Off, 1 = On
0
Feature REPORT
Command REPORT[FF=S, OF=S, IJ=I, IT=I, IS=I, TSS=I, TSB=I, SSS=I, SSB=I, JVN=S, TVN=S, SVN=S, OD=I, OPEN=I]
Application All
Parameters
Parameter Description Default
FF Report Format File (required)
Values: Path/filename for report format file
None
OF Output File (required)
Values: Full path/filename for the output file
None
IJ Report Content: Job Info (required)
Values: 0 = Off, 1 = On
None
IT Report Content: Tooling (required)
Values: 0 = Off, 1 = On
None
IS Report Content: Step (required)
Values: 0 = Off, 1 = On
None
TSS Tooling tab Selected Tools (required)
Values: 0 = All, 1 = Used by Steps, 2 = Used in Process Model, 3 = Used in PM - Exclude Masked
None
TSB Tooling tab Sorted By (required)
Values: 0 = By Current Order, 1 = By Tool Number, 2 = By Step List Order, 3 = By Process Model Order
None
SSS Steps tab Selected Steps (required)
Values: 0 = All, 1 = Used in Process Model, 2 = Used in PM - Exclude Masked
None
SSB Steps tab Sorted By (required)
Values: 0 = By Current Order, 1 = By Step Number, 2 = By Process Model Order, 3 = By Tool Number
None
JVN Job Info tab, Include View Image view name (required)
Enter view name to use as a string.
None
TVN Tooling tab, Include View Image view name (required)
Enter view name to use as a string.
None
SVN Steps tab, Include View Image view name (required)
Enter view name to use as a string.
None
OD Output to Printer device or to external file (required)
Values: 0 = Printer, 1 = File
None
OPEN Open JOS Report
Values: 0 = Off, 1 = On
0
Feature RESERVE PLANE
Command RES_PLANE[WP=S]
Application All
Parameters
Parameter Description Default
WP Plane Name (required) None
Feature REVERSE ORDER
Command REV_ORDER[EL=I, RP=I]
Application All
Parameters
Parameter Description Default
EL Element in Profile (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
RP Reverse Profile
Values: 0 = Order and Direction, 1 = Direction only, 2 = Order Only
0
Ro [To Top]
Feature ROTATE
Command ROTATE[XS=D, YS=D, ZS=D, XE=D, YE=D, ZE=D, AN=D, CP=I, NC=I, TS=I, TY=I, SP=I]
Application All
Parameters
Parameter Description Default
XS Pivot Axis X (required) None
YS Pivot Axis Y (required) None
ZS Pivot Axis Z (required when TY set to 3D) 0.0
XE Axis End X (required when TY set to 3D) None
YE Axis End Y (required when TY set to 3D) None
ZE Axis End Z (required when TY set to 3D) 0.0
AN Rotation Angle (required) None
CP Copies
Values: 0 = No, 1 = Yes
0
NC Number of copies 1
TS Sort by Tools
Values: 0 = Off, 1 = On
1
TY 2D or 3D Selector
Values: 0 = 2D, 1 = 3D
0
SP Suppress Planes
Values: 0 = Off, 1 = On
1
Feature ROUGHING SURFACES
Command ROUGH_SURFACES[AN=D, SS=I, SO=D, OA=D, TI=D, TO=D, PT=I, ZS=D, ZD=D, CU=I, CE=I, CF=I, BG=I, RU=I, RD=D, EU=I, ED=D, PH=I, SU=I, SD=D, UU=I, ZT=D, AT=D, SF=I, LU=I, LN=S, CSN=S, ASN=S, BCN=S, UA=I, AA=D]
Application FreeForm Machining
Parameters
Parameter Description Default
AN Cut Angle (required None
SS Start Side
Values: 0 = Left, 1 = Right
0
SO Stepover (required) None
OA Finish Allowance (required) None
TI In Tol (required) None
TO Out Tol (required) None
PT Path Type
Values: 0 = Zigzag, 1 = One Way No Plunge, 2 = One Way Plunge
0
ZS First Pass Level (required) None
ZD Depth of Cut (required) None
CU Use Containment
Values: 0 = Off, 1 = On
0
CE Containment Boundary Profile Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
0
CF Clear/Feed
Values: 0 = Absolute, 1 = Incremental, 2 = Straight
0
BG Bridge Gaps
Values: 0 = Straight, 1 = Clear/Feed
0
RU Roll Edge
Values: 0 = Off, 1 = On
0
RD Roll Edge Distance 0.125
EU Use Extend
Values: 0 = None, 1 = Start, 2 = End, 3 = Both
0
ED Extend Distance 0.25
PH Cut Phase
Values: 0 = As Calculated, 1 = Odd, 2 = Even
0
SU Super Sample
Values: 0 = Off, 1 = On
0
SD Super Sample Distance 0.1
UU Uphill Motion Only
Values: 0 = Off, 1 = On
0
ZT Z Tolerance for Uphill Motion 0.0001
AT Angle Tolerance for Uphill Motion 0
SF Surface Side
Values: 0 = Off, 1 = On
0
LU Use Log File
Values: 0 = Off, 1 = On
0
LN Log Filename None
CSN Cut Surfaces Group Name None
ASN Avoid Surfaces Group Name None
BCN Containment Boundaries Group Name None
UA Allowance Type
Values: 0 = Use Finish Allow, 1 = Specify
0
AA Avoidance Allowance Value 0.0
Feature ROUGHING TOOLPATH
Command ROUGH_TOOLPATH[ZS=D, ZD=D, CSN=S, ASN=S, BCN=S]
Application FreeForm Machining
Parameters
Parameter Description Default
ZS Start Z Level (required) None
ZD Decrement by Z (required) None
CSN Cut Surfaces Group Name None
ASN Avoid Surfaces Group Name None
BCN Containment Boundaries Group Name None
Ru [To Top]
Feature RULED MESH
Command RULE[E1=I, E2=I, E3=I, E4=I, PD=I, SP=I, SV=D, ZT=D, DI=I, DV=D, CM=I, GC=I, OF=I, OA=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 1st Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 1st Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 2nd Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E4 2nd Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PD Path Direction
Values: 0 = Cross, 1 = Along, 2 = Planar
0
SP Spacing
Values: 0 = Distance, 1 = Count, 2 = Cusp Hgt
0
SV Spacing Value (required) None
ZT Planar Z 0.0
DI Division
Values: 0 = Distance, 1 = Count, 2 = Mid-Tol, 3 = In-Tol, 4 = Out-Tol
0
DV Division Value (required) None
CM Connect Mesh
Values: 0 = Off, 1 = On
0
GC Gouge Correction
Values: 0 = Off, 1 = On
0
OF Offset
Values: 0 = Positive, 1 = Negative, 2 = 0
2
OA Finish amount 0.0
Feature RULED SURFACE (Transition)
Command FABRULE[E1=I, E2=I, E3=I, E4=I, SP=I, SV=D, CM=I, GC=I, OF=I, OA=D]
Application Fabrication
Parameters
Parameter Description Default
E1 1st Profile Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 1st Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 2nd Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E4 2nd Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
SP Spacing Type
Values: 0 = Distance, 1 = Count
0
SV Spc Val - Space Value (required) None
CM Build Faces
Values: 0 = Off, 1 = On
0
Feature RULED SURFACE
Command SRF_RULED[E1=I, E2=I, E3=I, E4=I]
Application FreeForm Machining
Parameters
Parameter Description Default
E1 1st Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 1st Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 2nd Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E4 2nd Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S [To Top]
Feature SAVE
Command SAVE[FN=S, JF=S, WF=I, AT=I, GS=I]
Notes SmartCAM uses the file's extension to know when you are writing a CAD file, rather than a PM5. Make sure you include the file extension in the FN parameter; examples: .DXF, .DWG, .IGS, .STP, .STEP, .SAT, and .STL.
Application All
Parameters
Parameter Description Default
FN Path and Filename (required) None
JF Job File Name
Not normally needed, used when using Job Plan files.
None
WF Which File
Values: 0 = Process model file only, 1 = Job file only, 2 = Both
2
AT Alternate File Type
When a single extension can have multiple file types, this option is used to select the specific type. Currently, this option is only used when saving STL files.
Values: 0 = ASCII STL, 1 = Binary STL
0
GS Group Save
Values: 0 = Entire file, 1 = Active group
0
Feature SCALE
Command SCALE[XF=D, YF=D, ZF=D, XS=D, YS=D, ZS=D]
Application All
Parameters
Parameter Description Default
XF X Scale Factor 1.0
YF Y Scale Factor 1.0
ZF Z Scale Factor 1.0
XS X Start (required) None
YS Y Start (required) None
ZS Z Start (required) None
Se [To Top]
Feature SECTION PARAMS
Command SECTION_PARAMS[RP=S, OF=D, NS=I]
Notes This macro command is used to configure the View - Section functionality. Use the SECTION_USE[] macro command to enable and disable the Section view.
Application All
Parameters
Parameter Description Default
RP Workplane (reference plane) XY_PLANE / ZX_PLANE for Turning
OF Offset Value 0
NS Normal Side
Values: 1 = Positive, 0 = Negative Side of Workplane Axis
1
Feature SECTION USE
Command SECTION_USE[ON=I]
Application All
Parameters
Parameter Description Default
ON Enable Section View
Values: 0 = Off, 1 = On
0
Feature SELECT ALL
Command SELECT_ALL[]
Notes Select all currently visible elements; masked or hidden elements not selected. There are no macro parameters for this command.
Application All
Feature SEQUENCE MOVE
Command SEQ_MOVE[SC=I]
Application All
Parameters
Parameter Description Default
SC Sort Criteria
Values: 0 = Existing Group Order, 1 = Group Selection Order
0
Sh [To Top]
Feature SHELL
Command SHELL[CMD_LN=S, WA=I, DP=I]
Notes The SHELL[] command enables you to open an operating system shell or Window, and execute an operating system command. This is not a recordable macro command, there is no UI for it.
Application All
Parameters
Parameter Description Default
CMD_LN DOS Command - commands to run (required) None
WA Wait
Values: 0 = Continue without waiting, 1 = Wait for completion of operation
1
DP Display Option
Values: 0 = Runs in Window, 1 = Runs in Background
0
Feature SHOW_ALL_LAYERS
Command SHOW_ALL_LAYERS[]
Notes Displays (shows) all hidden Layers.

No parameters for this command. Available in user interface by right-clicking on the CAD Geometry top-level element in the CAD - Process Plan list view list.

Feature SHOW_ALL_STEPS
Command SHOW_ALL_STEPS[]
Notes Displays (shows) all hidden Steps.

No parameters for this command. Available in user interface by right-clicking on the CAM Process Plan top-level element in the CAD - Process Plan list view list.

Feature SHOW HIDDEN
Command SHOW_HIDDEN[]
Notes Redisplays all hidden elements. There are no macro parameters for this command.
Application All
Feature SHOW/HIDE ELEMENT
Command SHOWHIDE_ELMT[EL=I]
Notes Show/Hide works like a toggle. If the element is displayed and you apply SHOWHIDE_ELMT[] on that element, it will be hidden. If you do it again, it will be toggled back to being visiable.
Application All
Parameters
Parameter Description Default
EL Element to Show/Hide (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature SHOW/HIDE PROFILE
Command SHOWHIDE_PROFILE[EL=I]
Notes Shows or hides a profile, where EL contains the element number of an element in the profile. The entire profile is shown or hidden, based on the 1st element in the profile. For these purposes a profile is a wireframe profile, hole sequence, or compound hole.
Application All
Parameters
Parameter Description Default
EL Element in Profile (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature SHOW/HIDE RANGE
Command SHOWHIDE_RANGE[EL1=I, EL2=I]
Notes Shows or hides a range of elements, where EL1 is the element number for the start of the range and EL2 the end of the range. Whether the range is shown or hidden is based on the first element in the range.
Application All
Parameters
Parameter Description Default
EL1 1st Element in Range (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
EL2 Last Element in Range (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature SHOW LAYER
Command SHOW_LAYER[LY=I]
Application All
Parameters
Parameter Description Default
LY Layer Number (required) None
Feature SHOW PATH
Command SHOW_PATH[RN=I, E1=I, E2=I, ST=I, DT=I, SP=I, VH=I, DE=I, DR=I]
Application All
Parameters
Parameter Description Default
RN Range to Simulate
Values: 0 = Entire Model, 1 = Active Group, 2 = Active Step, 3 = Specify Range, 4 = On Screen
3
E1 Range Start
If this is a Named element, the element name (in quotes) can be substituted for the element number.
1
E2 Range End
If this is a Named element, the element name (in quotes) can be substituted for the element number.
Last Elmt
ST Show Tool
Values: 0 = Animate, 1 = Nibble, 2 = Draw End, 3 = Filled
0
DT Draw Tool
Values: 0 = Wireframe, 1 = Flat, 2 = Opaque, 3 = Transparent
0
SP Speed
Values: 0 - 9
8
VH Show Holder
Values: 0 = Off, 1 = On
0
DE Draw Elements
Values: 0 = Off, 1 = On
0
DR Draw Rapids
Values: 0 = Off, 1 = On
1
Feature SHOW PLANE
Command SHOW_PLANE[WP=S]
Notes Show any hidden geometry assoicated with selected workplane.
Application All
Parameters
Parameter Description Default
WP Plane Name (required) None
Feature SHOW STEP
Command SHOW_STEP[ST=I]
Application All
Parameters
Parameter Description Default
ST Step Number (required) None
Feature SHOW TOOL
Command SHOW_TOOL[TL=I|TT=S]
Notes Depending upon which application being used with, you choose between TT and TL properties; use one or the other, not both.
Application All
Parameters
Parameter Description Default
TL Tool Number (required)
TL parameter is not used with Turning
None
TT Tool Turret:Tool Number (required)
TT is only used with Turning
None
Sl [To Top]
Feature SLICE GROUP (Old)
Command GROUP_SLICE[ZL=D, TO=D]
Notes This macro command has been superseded by the SLICE_GROUP[] macro command. GROUP_SLICE will continue to function, but is no longer recorded by SmartCAM's Macro Record functionality.
Application All
Parameters
Parameter Description Default
ZL Elevation of Slice Plane 0.0
TO Tolerance 0.001
Feature SLICE GROUP
Command SLICE_GROUP[ZL=D, TO=D, MT=I, AN=D, XS=D, YS=D, ZS=D, AX=I, AS=I, MW=I]
Application All
Parameters
Parameter Description Default
ZL Z Level (required) None
TO Tolerance (required) None
MT Method (required)
Values: 0 = Parallel, 1 = Radial/Ang, 2 = Radial/Pt
None
AN Angle (required) None
XS X-axis Reference Point Coordinate (required) None
YS Y-axis Reference Point Coordinate (required) None
ZS Z-axis Reference Point Coordinate (required) None
AX Axis Reference (required)
Values: 0 = Local X, 1 = Local Y, 2 = Local Z, 3 = World X, 4 = World Y, 5 = World Z
None
AS Axis Side (required)
For Turning applications only. Values: 0 = Positive, 1 = Negative, 2 = Both
None
MW Move to Workplane (required)
Values: 0 = Off, 1 = On
None
Feature SLICE PROFILE (Old)
Command PROF_SLICE[SE=I, ZL=D, TO=D]
Notes This macro command has been superseded by the SLICE_SOLID[] macro command. PROF_SLICE will continue to function, but is no longer recorded by SmartCAM's Macro Record functionality.
Application All
Parameters
Parameter Description Default
SE Surface Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
ZL Elevation of Slice Plane 0.0
TO Tolerance 0.001
Feature SLICE SOLID
Command SLICE_SOLID[SE=I, ZL=D, TO=D, MT=I, AN=D, XS=D, YS=D, ZS=D, AX=I, AS=I, MW=I]
Application All
Parameters
Parameter Description Default
SE Surface on Solid Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
ZL Z Level (required) None
TO Tolerance (required) None
MT Method (required)
Values: 0 = Parallel, 1 = Radial/Ang, 2 = Radial/Pt
None
AN Angle (required) None
XS X-axis Reference Point Coordinate (required) None
YS Y-axis Reference Point Coordinate (required) None
ZS Z-axis Reference Point Coordinate (required) None
AX Axis Reference (required)
Values: 0 = Local X, 1 = Local Y, 2 = Local Z, 3 = World X, 4 = World Y, 5 = World Z
None
AS Axis Side (required)
For Turning applications only. Values: 0 = Positive, 1 = Negative, 2 = Both
None
MW Move to Workplane (required)
Values: 0 = Off, 1 = On
None
Feature SOLID GROUP
Command SOLID_GRP[EL=I, AR=I]
Application All
Parameters
Parameter Description Default
EL Surface Element from Solid (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
AR Add/Remove (required)
Values: 0 = Add, 1 = Remove
Modal
Sp [To Top]
Feature PLANAR ROUGH
Command SPLANAR[TY=I, WC=D, DC=D, AN=D, AM=I, WA=D, FA=D, FL=D, ZSA=I, ZS=D, ZEA=D, ZE=D, TC=D, AR=D, SPM=I, SSX=D, SSY=D, PEN=S, CSN=S, BCN=S]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
TY Path Type (required)
Values: 0 = Spiral, 1 = Zigzag, 2 = Linear
None
WC Width of Cut (required) None
DC Depth of Cut (required) None
AN Pass Angle (required) None
AM Allowance Mode (required)
Values: 0 = 2D, 1 = 3D
None
WA Wall Allowance (2D) (required) None
FA Finish Allowance (3D) (required) None
FL Floor Allowance (2D) (required) None
ZSA Start Z Level (required)
Values: 0 = Off, 1 = On
None
ZS Start Z Level (required) None
ZEA End Z Level (required)
Values: 0 = Off, 1 = On
None
ZE End Z Level (required) None
TC Thru Clearance (required) None
AR Ramp Angle (required) None
SPM Pocket Start Mode
Values: 0 = None, 1 = Single, 2 = Group
0
SSX Start Point X Value None
SSY Start Point Y Yalue None
PEN Stock Elements Group Name Active
CSN Cut Surface Group Name Active
BCN User Start Point Group Name None
Feature PLANAR ROUGH - OPEN PROF
Command SPLANAR_OPEN[CLOS=I, MXEX=D, CO=I, AP=I, CP=I]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
CLOS Closure Method (required)
Values: 0 = Shortest Distance, 1 = Extend Tangentially
None
MXEX Max Extension (required) None
CO Connect Passes (required)
Values: 0 = Off, 1 = On
None
AP Alternate Passes (required)
Values: 0 = Off, 1 = On
None
CP Closed Profiles Only
Values: 0 = Off, 1 = On
0
Feature PLANAR ROUGH - OPTIONS
Command SPLANAR_OPTS[AFM=I, STL=D, AC=D, RM=I, RT=D, SO=D, CC=I, CI=I, OP=I, EW=I, EP=I, RD=I, IP=I, CDM=I, ICI=I, CSA=I, SD=I, OT=I, LYR=I, SDWN=I, MS=I, SWR=D, CS=I, SCR=D]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
AFM Arc Fit
Values: 0 = None, 1 = Before, 2 = After
0
STL Surface|Arc Tol (required) None
AC Corner Roll Angle 60.0
RM Thinning
Values: 0 = Off, 1 = On
0
RT Thinning Tolerance 0.00005
SO Stock Offset 0.0
CC Climb Cut
Values: 0 = Off, 1 = On
0
CI Cut Inside Out
Values: 0 = Off, 1 = On
0
OP Overlap Pass Ends
Values: 0 = Off, 1 = On
0
EW Equal Width Passes
Values: 0 = Off, 1 = On
0
EP Equal Depth Passes
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels
Values: 0 = Off, 1 = On
0
IP Clean-up Pass
Values: 0 = None, 1 = First, 2 = Last
0
CDM Critical Depths
Values: 0 = None, 1 = Entire Level, 2 = Island Tops First, 3 = Island Tops Last
0
ICI Cut Islands Inside Out
Values: 0 = Off, 1 = On
0
CSA Clear Stock Above
Values: 0 = Off, 1 = On
0
SD Show Diagnostics
Values: 0 = Off, 1 = On
0
OT Output Type
Values: 0 = Toolpath, 1 = Regions
0
LYR Region Output Layer 1
SDWN Stay Down
Values: 0 = Off, 1 = On
0
MS Smooth Path
Values: 0 = Off, 1 = Rough Only, 2 = Rough and Final
0
SWR Smooth Path Ratio 1.0
CS Smooth Connection
Values: 0 = Off, 1 = On
0
SCR Smooth Connection Ratio
Values: 2-6
3.0
Feature SOLID POCKET
Command SPOCKET[TY=I, WC=D, DC=D, AN=D, AM=I, WA=D, FA=D, FL=D, ZSA=I, ZS=D, ZEA=I, ZE=D, TC=D, AR=D, SPM=I, SSX=D, SSY=D, AC=D, RM=I, RT=D, CC=I, CI=I, OP=I, EW=I, EP=I, RD=I, IP=I, CMD=I, AFM=I, STL=D, ICI=I, SD=I, OT=I, LYR=I, SDWN=I, CO=I, AP=I, MS=I, SWR=D, CS=I, SCR=D, CSN=S, BCN=S]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
TY Path Type (required)
Values: 0 = Spiral, 1 = Zigzag, 2 = Linear, 5 = Part Offset
None
WC Width of Cut (required) None
DC Depth of Cut (required) None
AN Pass Angle (required if Path Type is Zigzag) None
AM 2D or 3D Allowance mode (required)
Values: 0 = 3D, 1 = 2D
None
WA Finish Allowance (required if Allowance Mode is 3D) None
FA Wall Allowance (required if Allowance Mode is 2D) None
FL Floor Allowance (required if Allowance Mode is 2D) None
ZSA Start Z Level On/Off (required)
Values: 0 = Off, 1 = On
None
ZS Start Z Level (required if Start Z Level is On) None
ZEA End Z Level On/Off (required)
Values: 0 = Off, 1 = On
None
ZE End Z Level (required if End Z Level is On) None
TC Thru Clearance (required) None
AR Ramp Angle (required) None
SPM User Start
Values: 0 = None, 1 = Single, 2 = Group
0
SSX Start Point X Coordinate None
SSY Start Point Y Coordinate None
AC Corner Roll Angle 60.0
RM Curve Fit Tolerance Toggle
Values: 0 = Off, 1 = On
0
RT Curve Fit Tolerance 0.00005
CC Climb Cut
Values: 0 = Conventional, 1 = Climb
0
CI Cut Inside Out
Values: 0 = Off (cut outside in), 1 = On
0
OP Overlap Pass Ends
Values: 0 = Off, 1 = On
0
EW Equal Width Passes
Values: 0 = Off, 1 = On
0
EP Equal Depth Passes
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels
Values: 0 = Off, 1 = On
0
IP Clean-up Pass
Values: 0 = None, 1 = First, 2 = Last
0
CDM Critical Depths Mode
Values are: 0 = None, 1 = Entire Level, 2 = Island Tops First, 3 = Island Tops Last
0
AFM Arc Fit
Values: 0 = None, 1 = Before, 2 = After
0
STL Tolerance (required) None
ICI Cuts Islands Inside Out
Values: 0 = Off, 1 = On
0
SD Show Diagnostics
Values: 0 = Off, 1 = On
0
OT Output Type
Values: 0 = Toolpath, 1 = Regions
0
LYR Region Output Layer 1
SDWN Stay Down
Values: 0 = Off, 1 = On
0
CO Connect Passes
Values: 0 = Off, 1 = On
0
AP Alternate Passes
Values: 0 = Off, 1 = On
0
MS Smooth Path
Values: 0 = Off, 1 = Rough Only, 2 = Rough and Final
0
SWR Smooth Path Ratio 1.0
CS Smooth Connection
Values: 0 = Off, 1 = On
0
SCR Smooth Connection Ratio
Values: 2-6
3.0
CSN Cut Surfaces Group Name None
BCN Start Points Group Name None
Feature SOLID PROFILE
Command SPROFILE[WS=D, WC=D, DC=D, AM=I, WA=D, FA=D, FL=D, ZSA=I, ZS=D, ZEA=I, ZE=D, TC=D, SPA=I, XS=D, YS=D, CM=I, CO=I, LD=D, OD=D, CL=I, EP=I, RD=I, CD=I, AFM=I, STL=D, CP=I, MS=I, SWR=D, CSN=S, ASN=S, BCN=S, UA=I, AA=D]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
WS Wall Stock (required) None
WC Width of Cut (required) None
DC Depth of Cut (required) None
AM 2D or 3D Allowance Mode (required)
Values: 0 = 3D, 1 = 2D
None
WA Finish Allowance (required if Allowance Mode is 3D) None
FA Wall Allowance (required if Allowance Mode is 2D) None
FL Floor Allowance (required if Allowance Mode is 2D) None
ZSA Start Z Level On/Off (required)
Values: 0 = Off, 1 = On
None
ZS Start Z Level (required if Start Z Level is On) None
ZEA End Z Level On/Off (required)
Values: 0 = Off, 1 = On
None
ZE End Z Level (required if End Z Level is On) None
TC Thru Clearance (required) None
SPA Profile Start Point On/Off (required)
Values: 0 = Off, 1 = On
None
XS Start Point X (required if Profile Start Point On) None
YS Start Point Y (required if Profile Start Point On) None
CM Cut Method (required)
Values: 0 = One Way, 1 = Alternate, 2 = Connect
None
CO Cut Order (required)
Values: 0 = Width First, 1 = Depth First
None
LD Infeed Distance (required) None
OD Outfeed Distance (required) None
CL Climb Cut (required)
Values: 0 = Off, 1 = On
0
EP Equal Depth Passes (required)
Values: 0 = Off, 1 = On
0
RD Rapid to Depth Levels (required)
Values: 0 = Off, 1 = On
0
CD Critical Depths (required)
Values are: 0 = Off, 1 = On
0
AFM Arc Fit
Values: 0 = None, 1 = Before, 2 = After
0
STL Surf/Arc Tolerance (required) None
CP Closed Profiles
Values: 0 = Off, 1 = On
0
MS Smooth Path
Values: 0 = Off, 1 = Rough Only, 2 = Rough and Final
0
SWR Smooth Path Ratio 1.0
CSN Cut Surfaces Group Name (required) None
ASN Avoid Surfaces Group Name (required) None
BCN Sequence Indicators Group Name (required) None
UA Allowance (required)
Values: 0 = Use Finish Allowance, 1 = Specify
0
AA Allowance value (required if Allowance set to Specify) 0.0
Feature SPLINE
Command SPLINE[IS=D, JS=D, KS=D, IE=D, JE=D, KE=D, DS=D, DE=D, CE=I, CL=<COORDLST>]
Application All
Parameters
Parameter Description Default
IS Start Vector I 0.0
JS Start Vector J 0.0
KS Start Vector K 0.0
IE End vector I 0.0
JE End Vector J 0.0
KE End Vector K 0.0
DS Start Vector Distance (length) 0.0
DE End Vector Distance (length) 0.0
CE Close End
Values: 0 = Off, 1 = On
0
CL Coordinate List (required)
Values: Coordinate list or variable declared as coordinate list
Modal
Feature SPLIT
Command SPLIT[EL=I, XS=D, YS=D, LC=I, GW=D, LN=D, DS=D, FR=I]
Application All
Parameters
Parameter Description Default
EL Element to Split (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
XS Near Point X None
YS Near Point Y None
LC Split location
Values: 0 = Nearest, 1 = Division, 2 = Distance
1
GW Gap Width 0.0
LN Length 0.5
DS Distance 0
FR From
Values: 0 = Start, 1 = End
0
Feature SPLIT SURFACE
Command SRF_SPLIT[ET=I, EGN=S, ES=I, OT=I, OGN=S, OS=I, GS=I, CI=I]
Application FreeForm Machining
Parameters
Parameter Description Default
ET Split Type (required)
Values: 0 = Group, 1 = Single Surface
None
EGN Group Name to Split None
ES Surface Element to Split
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
OT Single Surface or Group for Intersecting Surfaces (required)
Values: 0 = Group, 1 = Single surface
None
OGN Intersecting Surfaces Group Name None
OS Element for Intersecting Surface
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
CI Create Intersection Curves
Values: 0 = Off, 1 = On
0
Feature SPUN MESH
Command SPUN[E1=I, E2=I, E3=I, PD=I, OF=I, SP=I, AN=D, OA=D, SV=D, KO=I, CM=I, ZT=D, GC=I, VT=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 Generator Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Generator Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 Axis Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PD Path Direction
Values: 0 = Generator, 1 = Radial, 2 = Planar, 3 = Both
0
OF Offset
Values: 0 = Positive, 1 = Negative, 2 = 0
2
SP Spacing
Values: 0 = Distance, 1 = Count, 2 = Cusp Hgt, 3 = Junction
0
AN Revolve Angle (required) None
OA Finish Amount 0.0
SV Spacing Value (required) None
KO Keep Original
Values: 0 = Off, 1 = On
0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
ZT Planar Z 0.0
GC Gouge Correction
Values: 0 = Off, 1 = On
0
VT Virtual Mesh Tolerance Modal
Feature SPUN SURFACE
Command SRF_SPUN[E1=I, E2=I, E3=I, AN=D]
Application FreeForm Machining
Parameters
Parameter Description Default
E1 Generator Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Generator Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 Axis Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
AN Revolve Angle (required) None
St [To Top]
Feature START PROFILE
Command START_PROF[XE=D, YE=D, XS=D, YS=D, AN=D, DS=D, LV=D]
Notes The Start, Arc, and Line profile commands need to be used in combination with PROF_CONTEXT_OPEN and PROF_CONTEXT_CLOSED macro commands. The PROF_CONTEXT_OPEN command starts the profile context, then you start your profile using the START_PROF command, followed by the Line and Arc profile statements needed to construct your profile. Then end the profile with the PROF_CONTEXT_CLOSE command.
Application All
Parameters
Parameter Description Default
XE Start Profile Point X None
YE Start Profile Point Y None
XS Anchor Point X None
YS Anchor Point Y None
AN Angle None
DS Distance None
LV Level Modal
Feature STATUS
Notes No macro command for this function.
Feature TURN SOLID MACHINING - CONTOUR
Command STCONTOUR[DP=D, UNP=I, NP=I, ZF=D, XF=D, FC=I, CSN=S]
Application Advanced Turning
Parameters
Parameter Description Default
DP Pass Depth (required) None
UNP # - Turn on # of passes (required)
Values: 0 = Off, 1 = On
None
NP Number of Passes None
ZF Z Finish Allowance None
XF X Finish Allowance None
FC Facing Option
Values: 0 = Off, 1 = On
None
CSN Cut Surfaces Group Name None
Feature TURN SOLID MACHINING - CONTOUR OPTIONS
Command STCONTOUR_OPTS[LA=D, TA=D, CD=D, LD=D, BP=I, RS=I, TF=I, TT=D, TP=I, LY=I]
Notes STCONTOUR_OPTS[] must be called before calling the STCONTOUR[] macro command. The settings controlled by this macro command are modal, if the settings do not change you only need run once.
Application Advanced Turning
Parameters
Parameter Description Default
LA Effective Leading Edge Angle (required) None
TA Effective Trailing Edge Angle (required) None
CD Clearance Distance (required) None
LD Infeed Distance (required) None
BP Bidirectional Passes (required)
Values: 0 = Off, 1 = On
None
RS Return to Start (required)
Values: 0 = Off, 1 = On
None
TF Thinning (required)
Values: 0 = Off, 1 = On
None
TT Thinning Tolerance (required) None
TP Create TPP - Theoretical Part Profile (required)
Values: 0 = Off, 1 = On
None
LY TPP On Layer (required) None
Feature STEP GROUP
Command STEP_GRP[ST=S, AR=I]
Application All
Parameters
Parameter Description Default
ST Step Number, Range, or List (required) None
AR Add/Remove
Values: 0 = Add, 1 = Remove
Modal
Feature STEP SEQUENCE
Command STEP_SEQ[BA=I, ST=I, ME=I]
Application All
Parameters
Parameter Description Default
BA Before/After
Values: 0 = Before, 1 = After
0
ST Step (required) None
ME Match Element
Values: 0 = Off, 1 = On
Modal
Feature STEP SORT
Command STEP_SORT[ST=I, SD=I]
Application All
Parameters
Parameter Description Default
ST Step Number (required) None
SD Sort Domain
Values: 0 = Entire File, 1 = Active Group
0
Feature STEP SORT ALL
Command STEP_SORT_ALL[SD=I]
Application All
Parameters
Parameter Description Default
SD Sort Domain
Values: 0 = Entire File, 1 = Active Group
0
Feature TURN SOLID MACHINING - GROOVE
Command STGROOVE[WD=D, ZF=D, XF=D, CSN=S]
Application Advanced Turning
Parameters
Parameter Description Default
WD Pass Width (required) None
ZF Z Finish Allowance None
XF X Finish Allowance None
CSN Cut Surfaces Group Name None
Feature TURN SOLID MACHINING - GROOVE OPTIONS
Command STGROOVE_OPTS[LA=D, TA=D, BP=I, RS=I, AP=I, RP=I, LD=D, PM=I, PD=D, RM=I, TF=I, TT=D, TP=I, LY=I, CC=I, FS=I, BD=D]
Notes STGROOVE_OPTS[] must be called before calling the STGROOVE[] macro command. The settings controlled by this macro command are modal, if the settings do not change you only need run once.
Application Advanced Turning
Parameters
Parameter Description Default
LA Effective Leading Edge Angle (required) None
TA Effective Trailing Edge Angle (required) None
BP Bidirectional Passes (required)
Values: 0 = Off, 1 = On
None
RS Return to Start (required)
Values: 0 = Off, 1 = On
None
AP Adjust Passes (required)
Values: 0 = Off, 1 = On
None
RP Reverse Progression
Values: 0 = Off, 1 = On
0
LD Infeed Distance (required) None
PM Pecking Method (required)
Values: 0 = None, 1 = Depth First, 2 = Width First
None
PD Peck Distance (required) None
RM Retract Method (required)
Values: 0 = Full, 1 = Partial
None
TF Thinning (required)
Values: 0 = Off, 1 = On
None
TT Thinning Tolerance (required) None
TP Create TPP - Theoretical Part Profile (required)
Values: 0 = Off, 1 = On
None
LY TPP On Layer (required) None
CC Cleanup Cusps 0
FS Finish to Size 0
BD Back-off Distance 0.0
Feature STITCH SURFACES
Command STITCH_SURFACES[]
Notes Attempts to topologically stitch multiple surfaces, from current group, into one or more solid bodies. There are no macro parameters for this command.
Application All
Feature TURN SOLID MACHINING - LINEAR
Command STLINEAR[DP=D, AN=D, ZF=D, XF=D, FC=I, CSN=S]
Application Advanced Turning
Parameters
Parameter Description Default
DP Pass Depth (required) None
AN Pass Angle (required) None
ZF Z Finish Allowance (required) None
XF X Finish Allowance (required) None
FC Facing Option (required)
Values: 0 = Off, 1 = On
None
CSN Cut Surfaces Group Name (required) None
Feature TURN SOLID MACHINING - LINEAR OPTIONS
Command STLINEAR_OPTS[LA=D, TA=D, CD=D, LD=D, BP=I, BD=D, OP=I, PA=I, RP=I, RS=I, TF=I, TT=D, TP=I, LY=I]
Notes STLINEAR_OPTS[] must be called before calling the STLINEAR[] macro command. The settings controlled by this macro command are modal, if the settings do not change you only need run once.
Application Advanced Turning
Parameters
Parameter Description Default
LA Effective Leading Edge Angle (required) None
TA Effective Trailing Edge Angle None
CD Clearance Distance None
LD Infeed Distance None
BP Bidirectional Passes
Values: 0 = Off, 1 = On
None
BD Back-off Distance None
OP Overlap Passes
Values: 0 = Off, 1 = On
None
PA Equalize By
Values: 0 = None, 1 = Decrease Depth, 2 = Increase Depth
None
RP Use Retract Point
Values: 0 = Off, 1 = On
None
RS Return to Start
Values: 0 = Off, 1 = On
None
TF Thinning
Values: 0 = Off, 1 = On
None
TT Thinning Tolerance None
TP Create TPP (Theoretical Part Profile)
Values: 0 = Off, 1 = On
None
LY TPP On Layer None
Feature TURN SOLID MACHINING - PART PROFILE
Command STPART[SLM=I, SLA=D, SLX=D, SLY=D, SLZ=D, SLS=I, STM=I, STL=D, STI=I, STZ=D, STX=D, ENM=I, ENL=D, ENI=I, ENZ=D, ENX=D]
Notes STPART[] must be called before calling the associated machining macro command (STLINEAR[], STCONTOUR[], STGROOVE[], or STPROFILE[]). The settings controlled by this macro command are modal, if the settings do not change you only need run once.
Application Advanced Turning
Parameters
Parameter Description Default
SLM Slice Method (required)
Values: 1 = Radial/Ang, 2 = Radial/Pt
None
SLA Angle (required) None
SLX X-axis Point (required) None
SLY Y-axis Point (required) None
SLZ Z-axis Point (required) None
SLS Axis Side (required)
Values = 0 = Positive, 1 = Negative
None
STM Start Extension (required)
Values: 0 = None, 1 = Tangential, 2 = Along X Plus, 3 = Along Z Plus, 4 = Along X Minus, 5 = Along Z Minus
None
STL Start Extension Length (required) None
STI Start Extension Intercept (required)
Values: 0 = Off, 1 = On
None
STZ Z-axis Coordinate for Start Extension Intercept (required) None
STX X-axis Coordinate for Start Extension Intercept (required) None
ENM End Extension (required)
Values: 0 = None, 1 = Tangential, 2 = Along X Plus, 3 = Along Z Plus, 4 = Along X Minus, 5 = Along Z Minus
None
ENL End Extension Length (required) None
ENI End Extension Intercept (required)
Values: 0 = Off, 1 = On
None
ENZ Z-axis Coordinate for End Extension Intercept (required) None
ENX X-axis Coordinate for End Extension Intercept (required) None
Feature TURN SOLID MACHINING - PROFILE
Command STPROFILE[ZF=D, XF=D, FC=I, CSN=S, ASN=S, UA=I, AA=D]
Application Advanced Turning
Parameters
Parameter Description Default
ZF Z Finish Allowance (required) None
XF X Finish Allowance (required) None
FC Facing Option (required)
Values: 0 = Off, 1 = On
None
CSN Cut Surfaces Group Name (required) None
ASN Avoid Surfaces Group Name (required) None
UA Allowance Type Selection (required)
Values: 0 = Use Finish Allow, 1 = Specify
None
AA Avoidance Allowance Value (required) None
Feature TURN SOLID MACHINING - PROFILE OPTIONS
Command STPROFILE_OPTS[LA=D, TA=D, CD=D, LD=D, OD=D, BP=I, BD=D, AC=D, RS==I, TF=I, TT=D, TP=I, LY=I]
Notes STPROFILE_OPTS[] must be called before calling the STPROFILE[] macro command. The settings controlled by this macro command are modal, if the settings do not change you only need run once.
Application Advanced Turning
Parameters
Parameter Description Default
LA Effective Leading Edge Angle (required) None
TA Effective Trailing Edge Angle (required) None
CD Clearance Distance (required) None
LD Infeed Distance (required) None
OD Outfeed Distance (required) None
BP Bidirectional Passes (required)
Values: 0 = Off, 1 = On
None
BD Back-off Distance (required) None
AC Corner Roll Angle 0.0
RS Roll Short Segments
Values: 0 = Off, 1 = On
0
TF Thinning (required)
Values: 0 = Off, 1 = On
None
TT Thinning Tolerance (required) None
TP Create TPP - Theoretical Part Profile (required)
Values: 0 = Off, 1 = On
None
LY TPP On Layer (required) None
Feature STRAIGHT
Command STRAIGHT[AN=D, SS=I, SO=D, OA=D, TI=D, TO=D, PT=I, CU=I, CE=I, UE=I, CF=I, BG=I, RU=I, EU=I, ED=D, PH=I, SU=I, SD=D, UU=I, ZT=D, AT=D, SF=I, LU=I, LN=S, CSN=S, ASN=S, BCN=S, UA=I, AA=D]
Application FreeForm Machining
Parameters
Parameter Description Default
AN Cut Angle (required) None
SS Start Side
Values: 0 = Left, 1 = Right
0
SO Step Over Distance (required) None
OA Offset (Finish) Amount (required) None
TI In Tolerance (required) None
TO Out Tolerance (required) None
PT Path Type
Values: 0 = Zigzag, 1 = One Way No Plunge, 2 = One Way Plunge
0
CU Containment
Values: 0 = Off, 1 = On
0
CE Containment Boundary Profile Element
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
UE Use Extras
Values: 0 = Off, 1 = On
0
CF Clear/Feed
Values: 0 = Absolute, 1 = Incremental, 2 = Straight
0
BG Bridge Gaps
Values: 0 = Straight, 1 = Clear/Feed
0
RU Roll Edges
Values: 0 = Off, 1 = On
0
EU Extend
Values: 0 = None, 1 = Start, 2 = End, 3 = Both
0
ED Extend Distance 0.25
PH Cut Phase
Values: 0 = As calculated, 1 = Odd, 2 = Even
0
SU Super Sample
Values: 0 = Off, 1 = On
0
SD Super Sample Distance 0.1
UU Uphill Motion Only
Values: 0 = Off, 1 = On
0
ZT Z Tolerance for Uphill Motion 0.0001
AT Angle Tolerance for Uphill Motion 0
SF Surface Side
Values: 0 = Off, 1 = On
0
LU Log File
Values: 0 = Off, 1 = On
0
LN Log Filename None
CSN Cut Surfaces Group Name None
ASN Avoid Surfaces Group Name None
BCN Containment Boundaries Group Name None
UA Allowance Type
Values: 0 = Use Finish Allow, 1 = Specify
0
AA Avoidance Allowance Value 0.0
Feature TURN SOLID MACHINING - STOCK PROFILE
Command STSTOCK[MTH=I, SS=I, SE=I, ZS=D, XS=D]
Notes STSTOCK[] must be called before calling the associated machining macro command (STLINEAR[], STCONTOUR[], STGROOVE[], or STPROFILE[]). The settings controlled by this macro command are modal, if the settings do not change you only need run once.
Application Advanced Turning
Parameters
Parameter Description Default
MTH Stock Defined By
Values: 0 = Stock Profile, 1 = Stock Point, 2 = Part Profile
None
SS Stock Profile Start (required) None
SE Stock Profile End (required) None
ZS Stock Point Z (required) None
XS Stock Point X/D (required) None
Su [To Top]
Feature SUBROUTINE CALL
Command SUB_CALL[NN=S, CP=I, UE=I, XE=D, YE=D, ZE=D, AS=D, RR=I]
Application All
Parameters
Parameter Description Default
NN Subroutine Name (required) None
CP Repeats 0
UE Use Active Step/Layer
Values: 0 = No, 1 = Yes
0
XE Insertion Point X None
YE Insertion Point Y None
ZE Insertion Point Z None
AS Rotation Angle 0.0
RR Rotate Repeats
Values: 0 = No, 1 = Yes
0
Feature ADD WORKPLANE TO SUB-SPINDLE
Command SUBSPNDL_PLANE[WP=S]
Application Advanced Turning
Parameters
Parameter Description Default
WP Workplane Name to Associate with Sub-spindle (required) None
Feature REMOVE WORKPLANE FROM SUB-SPINDLE
Command NONSUBSPNDL_PLANE[WP=S]
Application Advanced Turning
Parameters
Parameter Description Default
WP Workplane Name to Remove from Sub-spindle (required) None
Feature SURFACE ADJACENT GROUP
Command SURF_ADJACENT_GRP[AR=I, EL=I]
Application All
Parameters
Parameter Description Default
AR Add/Remove (required)
Values: 0 = Add, 1 = Remove
Modal
EL Seed Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature SURFACE TANGENT GROUP
Command SURF_TANGENT_GRP[AR=I, EL=I]
Application All
Parameters
Parameter Description Default
AR Add/Remove (required)
Values: 0 = Add, 1 = Remove
Modal
EL Seed Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature SURFACE MODES
Command SURFMODES[VT=D, BT=D, ZM=D, CN=D, NC=I, DS=I, DF=I, GU=I, GV=I, GT=D, SF=D, RD=I, IM=I, RA=D, RZ=D, RF=D]
Application All
Parameters
Parameter Description Default
VT Virtual Mesh Tolerance (Advanced Milling/FreeForm Machining Only) 0.001
BT Boundary Tangent Angle - required for C1 continuity (Advanced Milling/FreeForm Machining Only) 2.0
ZM Z Maxima Tolerance (Advanced Milling/FreeForm Machining Only) 0.01
CN Coincident Normals Angle (Advanced Milling/FreeForm Machining Only) 0.25
NC Non-uniform Correction
Values: 0 = Off, 1 = On (Advanced Milling/FreeForm Machining Only)
0
DS Initial Surface Draw
Values: 0 = Off, 1 = On (Advanced Milling/FreeForm Machining Only)
0
DF Final Surface Draw
Values: 0 = Off, 1 = On (Advanced Milling/FreeForm Machining Only)
0
GU U-direction Count 3
GV V-direction Count 3
GT Display Curve Tol 0.001
SF Point Set Fitting tolerance 0.0005
RD Use System Default Resolution
Values: 0 = Off (use RA, RZ, and RF), 1 = On (use system defaults)
1
IM Incoming Model Tols
Values: 0 = Off. Do not use incoming model header values for RESABS and RESFIT tolerance, use the RA and RF values instead.
1 = On. Use the incoming model header values.
0
RA Absolute Resolution (RESABS)
Values: 1.0E-8 to 1.0E-2
1.0E-6
RZ Zero Resolution (RESNOR)
Values: 1.0E-15 to RA*0.1
1.0E-10
RF Fitting Resolution (RESFIT)
Values: RA*100 to RA*10000
1.0E-3
Feature SURFACE ENVELOPE CALCULATION MODE
Command SURF_ENV_MODE_SET[MD=I]
Notes Sets the Surface Entity Bounding Box Mode in Performance Options. This setting determines the speed and accuracy of the bounding box calculation used by View - Envelope and the GRP_DIAG() function.
Application All
Parameters
Parameter Description Default
MD Calculation Mode
Values: 0 = Default (fast), 1 = Exact (accurate)
0
Feature SYNCHRONIZE
Command SYNCHRONIZE[SP=I, PR=I]
Application Advanced Turning
Parameters
Parameter Description Default
SP Spindles Used
Values: 0 = Main Spindle, 1 = Sub Spindle, 2 = Main & Sub
-1
PR Primary Turret at Start of Synchronization (required)
Values: 0 = Turret #1, 1 = Turret #2
0
Feature SYSTEM REDRAW
Command SYSREDRAW[]
Notes It redraws the SmartCAM window; including graphics view, menus, control panels. Same as the ALT+F8 redraw. Useful for refreshing panels, created by Visual CTK, when panel's macro updates field contents. There are no macro parameters for this command.
Application All
Feature SYSTEM UNIT
Command SYSTEM_UNITS[UNITSYS=I, ASKME=I]
Application All
Parameters
Parameter Description Default
UNITSYS New Job Units (required)
Values: 0 = Inch, 1 = Metric
None
ASKME Ask During Next File New (required)
Values: 0 = No, 1 = Yes
None
T [To Top]
Feature TAPER CHANGE
Command TAPER_CHG[QA=D, EL=I]
Application Wire EDM
Parameters
Parameter Description Default
QA Taper Angle 0.0
EL Profile Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature TEXT
Command TEXT[FN=S, TX=S, XC=D, YC=D, XS=D, YS=D, AN=D, RA=D, HT=D, SP=D, TY=I, LV=D, WF=I, SF=S, IB=I, II=I]
Application All
Parameters
Parameter Description Default
FN Font Filename Modal
TX Text to draw (required) None
XC X Center None
YC Y Center None
XS X Start None
YS Y Start None
AN Angle Start None
RA Radius None
HT Text Height (required) None
SP Spacing 0
TY Text Orientation
Values: 0 = Linear, 1 = CW, 2 = CCW
0
LV Level Modal
WF Font Source
Values: 0 = SmartCAM Font, 1 = Windows Font
0
SF Name of Windows Font File
Note: It is usually best to record a macro and create a little bit of text, using the Geometry - Text function. Then edit the macro and find out what Font Name SmartCAM recorded. Then use this as your font name.
None
IB Is the Windows Font using Bold Text
Values: 0 = Regular Text, 1 = Bold Text
0
II Is the Windows Font using Italic Text
Values: 0 = Regular Text, 1 = Italics Text
0
Feature THREAD
Command THREAD2[XS=D, YS=D, XE=D, YE=D, ND=D, CX=D, PT=D, DS=D, FPD=D, IA=D, OA=S, FN=S]
Notes If a thread table (FN) is not specified, the macro looks for the default thread table if a nominal diameter (ND) variable is in the parameter list. Both the ND an FN variables need to be removed from the command list to avoid using a thread table and ensure that the hard-coded values in the command are used.

If a thread lookup table is specified, it writes to the fields not specified in the macro; changing values of entered data if need be.

Application Turning
Parameters
Parameter Description Default
XS Root Start Z (required) None
YS Root Start D (required) None
XE Root End Z (required) None
YE Root End D (required) None
ND Nominal Diameter (required) None
CX Crest Start D (required) None
PT Pitch (required) None
DS 1st Pass Depth (required) None
FPD Final Pass Depth (required) None
IA Infeed Angle (required) None
OA Outfeed Angle (required) None
FN Thread Lookup Filename None
Feature THREAD PARAMETERS
Command THREAD2_PARAMS[SE=D, EE=D, NSP=I, NFP=I, PDF=D, CVE=D, MPD=D]
Notes Used in combination with THREAD2[]. THREAD2_PARAMS[] controls the thread pass parameter settings. It is modal, if the settings do not change you only need run once.
Application Turning
Parameters
Parameter Description Default
SE Start Extension (required) None
EE End Extension (required) None
NSP Number of Spring Passes (required) None
NFP Number of Factored Passes (required) None
PDF Pass Depth Factor (required) None
CVE Constant Volume Exponent (required) None
MPD Minimum Pass Depth (required) None
Ti [To Top]
Feature TIME OFF
Command TIME_OFF[]
Notes Outputs the total time since the TIME_ON[] command. A TIME_OFF command without a balancing TIME_ON command will be ignored.
Application All
Feature TIME ON
Command TIME_ON[FN=S, TX=S, AP=I, LV=I]
Notes Resets the "clock" and begins measuring the elapsed time from that point. It outputs the following starting information to the output file:
TIMER ON: mm/dd/yy hh:mm:ss
Product/Version: name, version
Current macro:
Text annotation: (from TX parameter)

Setting the elapsed time in macro values (LV>0) prevents having to add TIME_ON/TIME_OFF to every single case in a long macro. The following output occurs while this command is on and the proper level (LV) is set:

MACRO EXECUTED: mm/dd/yy hh:mm:ss
Macro name: macro name
MACRO FINISHED: mm/dd/yy hh:mm:ss
Macro name:  macro name
Time in macro: hh:mm:ss (sss)
Application All
Parameters
Parameter Description Default
FN Output Filename None
TX Annotation Text
Values: 40 character maximum
None
AP Append
Values: 0 = New file, 1 = Append to existing file
0
LV Information Level
Values: 0 = Only time_on/time_off, 1 = Every macro execution/termination, 2 = Every macro command
0
To [To Top]
Feature TOOL GROUP
Command TOOL_GRP[TT=S, TL=S, AR=I]
Application All
Parameters
Parameter Description Default
AR Add/Remove
Values: 0 = Add, 1 = Remove
Modal
TL Tool Number, Range, or List (required) None
TT Turret:Tool (Turning Only) None
Feature TOOL PLANE
Command TL_PLANE[WP=S, TP=S]
Application All
Parameters
Parameter Description Default
WP Workplane (required) None
TP Toolplane (required) None
Feature TOOL SEQUENCE (old)
Command TOOL_SEQ[BA=I, TL=I, ME=I]
Notes Replaced by STEP SEQUENCE and JOB TOOL in current applications.
Application All
Parameters
Parameter Description Default
BA Before/After
Values: 0 = Before, 1 = After
0
TL Tool (required) None
ME Match Element
Values: 0 = Off, 1 = On
Modal
Feature TOOL SORT
Command TOOL_SORT[TT=S, TL=I, SD=I]
Application All
Parameters
Parameter Description Default
TT Turret:Tool (Turning only) None
TL Tool (required) None
SD Sort Domain
Values: 0 = Entire file, 1 = Active group
0
Feature TOOL SORT ALL
Command TOOL_SORT_ALL[SD=I]
Application All
Parameters
Parameter Description Default
SD Sort Domain
Values: 0 = Entire File, 1 = Active Group
0
Tr [To Top]
Feature TRANSLATED MESH
Command TRANSLATED[E1=I, E2=I, E3=I, E4=I, PD=I, SP=I, OF=I, SV=D, ZT=D, OA=D, KO=I, CM=I, GC=I, VT=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 Generator Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Generator Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 Director Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E4 Director Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
PD Path Direction
Values: 0 = Generator, 1 = Director, 2 = Planar, 3 = Both
0
SP Spacing
Values: 0 = Distance, 1 = Count, 2 = Cust Hgt, 3 = Junction
0
OF Offset
Values: 0 = Positive, 1 = Negative, 2 = 0
2
SV Spacing Value (required) None
ZT Planar Z 0.0
OA Finish Amount 0.0
KO Keep Entity Type
Values: 0 = Off, 1 = On
0
CM Connect Mesh
Values: 0 = Off, 1 = On
0
GC Gouge Correction
Values: 0 = Off, 1 = On
0
VT Virtual Mesh Tolerance Modal
Feature TRANSLATED SURFACE
Command SRF_TRANSLATED[E1=I, E2=I, E3=I, E4=I]
Application FreeForm Machining
Parameters
Parameter Description Default
E1 Generator Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 Generator Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 Director Profile Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E4 Director Profile End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature TRAP DOOR
Command TRAP_DOOR[XS=D, YS=D, DG=I]
Application Fabrication
Parameters
Parameter Description Default
XS Trap Door X Location (required) None
YS Trap Door Y Location (required) None
DG Drag Tool
Values: 0 = Off, 1 = On
0
Feature TRIM AND EXTEND
Command TRIM_EXT[E1=I, E2=I, S1=I, S2=I, IN=I]
Application All
Parameters
Parameter Description Default
E1 1st Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 2nd Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S1 1st Keep Side
Values: 0 = Left, 1 = Right, 2 = Mouse, 3 = N/A
3
S2 2nd Keep Side
Values: 0 = Left, 1 = Right
None
IN Intersection Number
Values: 1 = First intersection, 2 = Second, 3 = Third, 4 = Fourth
1
Feature TRANSITIONS RULED INTERSECT
Command TRIM_SURFS[E1=I, E2=I, E3=I, E4=I, T1=I, T2=I]
Application Fabrication
Parameters
Parameter Description Default
E1 1st Surface Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 1st Surface End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 2nd Surface Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E4 2nd Surface End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
T1 Build Faces (1st Surface)
Values: 0 = Off, 1 = On
1
T2 Build Faces (2nd Surface)
Values: 0 = Off, 1 = On
1
Feature TRIM MESH
Command TRIM_SURFS[E1=I, E2=I, E3=I, E4=I, T1=I, T2=I, S1=I, S2=I, CC=I, VT=D]
Application Advanced Milling, FreeForm Machining
Parameters
Parameter Description Default
E1 1st Mesh Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 1st Mesh End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E3 2nd Mesh Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E4 2nd Mesh End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S1 Keep Side 1
Values: 0 = Positive, 1 = Negative
0
S2 Keep Side 2
Values: 0 = Positive, 1 = Negative
0
T1 Trim (1st Surface)
Values: 0 = Off, 1 = On
1
T2 Trim (2nd Surface)
Values: 0 = Off, 1 = On
1
CC Create Intersection Curve
Values: 0 = Off, 1 = On
0
VT Virtual Mesh Tolerance Modal
U [To Top]
Feature UNDO
Command UNDO[]
Notes Only applicable to commands that support undo. There are no macro parameters for this command.
Application All
Feature UNRESERVE PLANE
Command UNRES_PLANE[WP=S]
Application All
Parameters
Parameter Description Default
WP Plane Name (required)
Values: ? = Wild Character, * = Wildcard (unreserve all)
None
Feature UNWRAP CURVE
Command UN_WRAP_CRV[TY=I, AX=I, AN=D, MP=I, KP=I, TO=D]
Application Advanced Milling, Advanced Turning, FreeForm Machining, Fabrication
Parameters
Parameter Description Default
TY Unwrap Method (required)
Values: 0 = Seam Angle, 1 = Positive Side, 2 = Negative Side, 3 = Continuous Helix
0
AX Unwrap About (required)
Values: 0 = X Axis, 1 = Y Axis
0
AN Seam Angle (required) 0.0
MP Match Properties (required)
Values: 0 = Off, 1 = On
0
KP Keep Original (required)
Values: 0 = Off, 1 = On
0
TO Tolerance 0.0001
Feature UNWRAP PLANE
Command UN_WRAP[WP=S]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
WP Unwrap Cylindrical Plane (required) None
Feature USER EVENTS
Command UEVENT[XS=D, YS=D, LV=D, TX=S]
Application All
Parameters
Parameter Description Default
XS Start Point X (required) None
YS Start Point Y (required) None
LV Level Modal
TX Text String (required) None
Feature USER REGION
Command CREATE_USER_REGION[PI=I, PS=I, PE=I, PL=I, PG=S, SI=I, SS=I, SE=I, SL=I, SG=S, TC=I, KO=I]
Application Milling, Advanced Turning
Parameters
Parameter Description Default
PI Part Input (required)
Values: 0 = Whole Part, 1 = Partial Part, 2 = Layer, 3 = Group, 4 = None
None
PS Part Profile/Start Element. Used when PT is set to Whole Profile (0) or Partial Profile (1). 0
PE Part Profile End Element. Used when PT is set to Partial Profile (1). 0
PL Part Layer Number. Used if Part Input set to Layer number. 0
PG Part Group Name. Used if Part Input is set to Group name. None
SI Stock Input (required)
Values: 0 = Whole Profile, 1 = Partial Profile, 2 = Layer, 3 = Group, 4 = None
None
SS Stock Profile/Start Element. Used if SI is set to Whole Profile (0) or Partial Profile (1). 0
SE Stock Profile End Element. Used when SI is set to Partial Profile (1). 0
SL Stock Layer Number. Used if Stock Input is set to Layer number. 0
SG Stock Group Name. Used if Stock Input is set to Group name. None
TC Tool Center
Values: 0 = Off, 1 = On
None
KO Keep Original
Values: 0 = Off, 1 = On
None
V [To Top]
Feature VALIDATE SURFACES
Command VALIDATE_SURFACES[LV=I, ACT=I, SD=I]
Application All
Parameters
Parameter Description Default
LV Check Level
Values: 0 = Low, 1 = Medium, 2 = High
0
ACT Attempt Healing
Values: 0 = Just Report, 1 = Attempt Healing
None
SD Display Diagnostic Window
Values: 0 = Do not display diagnostic Window, 1 = Display Diagnostics
1
Feature VARIABLES: REMOVE USER
Command VAR_REMOVE[VN=S]
Notes Removes user defined macro variable from variable list. See. VAR_REMOVE_LIST[] to remove a set of variables.
Application All
Parameters
Parameter Description Default
VN Variable Name (required)
This is a string representing the variable name, not the variable itself. Do not include the # character.
None
Feature VARIABLES: REMOVE ALL USER
Command VAR_REMOVE_ALL[]
Notes Removes all user defined macro variables from variable table. It is not recommended to use this macro command, as all CTK automations (including those shipped with SmartCAM) share the same user defined macro space; removing all variables could affect those automations.

It is better to use VAR_REMOVE[] or VAR_REMOVE_LIST[] to remove an individual variable or a set of variables that you created in your macro.

There are no macro parameters for this command.

Application All
Feature VARIABLES: REMOVE LIST USER
Command VAR_REMOVE_LIST[LST=S]
Notes Removes all user defined macro variables matching the patterns in the comma delimited list from variable table.

Matches complete names as well as single character wildcard '?', and zero or more character wildcard '*'.

** It can also use more advanced regular expression matching.

Application All
Parameters
Parameter Description Default
LST Comma delimited Variable Name or Name Pattern list (required)
This is a comma delimited string representing the variable names, not the variables themselves. Do not include the # character.
None
VAR_REMOVE_LIST[LST="THD_*, PASS_COUNT, *X?"]
  removes
	 all variables that begin with THD_, 
	 the variable PASS_COUNT, 
	 and all variables that end with X and any other single character. 
Feature VARIABLES: RESET USER
Command VAR_RESET[VN=S]
Notes Resets the named user defined macro variable. Similar to deleting the variable and recreating it. Allows you reset variables, used on CTK panels (for example), so that if the panel is reopened or re-run, the input field and variable will not contain the value from the last execution of the macro.
Application All
Parameters
Parameter Description Default
VN Variable Name (required)
This is a string representing the variable name, not the variable itself. Do not include the # character.
Feature VIEW ANGLE
Command VIEW_ANGLE[VA=I, VP=I, A1=D, A2=D, RS=I, WP=I]
Application All
Parameters
Parameter Description Default
VA Vertical axis
Values: 0 = X, 1 = Y, 2 = Z
0
VP View plane
Values: 0 = World, 1 = Workplane
0
A1 Angle 1 (required)
Values: 0 - (2 * PI) (measured in radians)
None
A2 Angle 2 (required)
Values: 0 - (2 * PI) (measured in radians)
None
RS Redraw size
Values: 0 = Envelope, 1 = Full, 2 = Current
0
WP Workplane
Values: 0 = XY, 1 = YZ, 2 = ZX
0
Feature VIEW FILTERS
Command VIEW_FILTERS[US=I, TF=I, WF=I, SF=I, MF=I, HF=I]
Application All
Parameters
Parameter Description Default
US Applies To (required)
Values: 0 = Graphics View, 1 = List View, 2 = Both
None
TF Display Toolpath (Step)
Values: 0 = Off, 1 = On
None
WF Display Wireframe (Layer)
Values: 0 = Off, 1 = On
None
SF Display Surfaces
Values: 0 = Off, 1 = On
None
MF Include Masked Elements
Values: 0 = Off, 1 = On
None
HF Include Hidden Elements
Values: 0 = Off, 1 = On
None
Feature VIEW SURF
Command VIEWSURF[P1=I, P2=I, S1=I, S2=I]
Application Wire EDM
Parameters
Parameter Description Default
P1 Primary Range Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
P2 Primary Range End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S1 Secondary Range Start (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
S2 Secondary Range End (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
W [To Top]
Feature WAIT
Command WAIT[B1=I, E1=I, B2=I, E2=I]
Application Advanced Turning
Parameters
Parameter Description Default
B1 Primary Turret Wait (required)
Values: 0 = Before, 1 = After
0
E1 Primary Turret Wait Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
B2 Secondary Turret Wait (required)
Values: 0 = Before, 1 = After
0
E2 Secondary Turret Wait Element (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
Feature WALL OFFSET
Command WALL[EL=I, SD=I, DS=D, ME=I, RP=I, LR=I, TA=I, TO=D, AN=D, RS=I, RO=I, WI=I]
Application All
Parameters
Parameter Description Default
EL Element in Profile (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
SD Wall Side (required)
Values: 0 = Left, 1 = Right
None
DS Distance (required) None
ME Match Properties
Values: 0 = Off, 1 = On
0
RP Wall Repeats
Values: 1 - 999
1
LR Loop Removal (milling only)
Values: 0 = Off, 1 = On
0
TA Tolerance Application (milling only)
Values: 0 = Off, 1 = On
0
TO Tolerance 0.00005
AN Corner Roll Angle
Values: 5 - 180
60.0
RS Roll Short Seg
Values: 0 = Off, 1 = On
1
RO Reverse Order
Values: 0 = Off, 1 = On
0
WI Wall Input
Values: 0 = Profile, 1 = Element
0
Wi [To Top]
Feature WINDOW
Command WINDOW[X1=D, Y1=D, X2=D, Y2=D]
Application All
Parameters
Parameter Description Default
X1 1st Box Corner (required)
Values: Screen ordinate value
None
Y1 1st Box Corner Y (required)
Values: Screen ordinate value
None
X2 2nd Box Corner X (required)
Values: Screen ordinate value
None
Y2 2nd Box Corner Y (required)
Values: Screen ordinate value
None
Feature WITH STEP
Command WITH_STEP[ST=I, WP=S, OF=I, LV=D, CL=D, PT=D]
Application All
Parameters
Parameter Description Default
ST Step Number None
WP Workplane Name Modal
OF Offset
Values: 0 = Left, 1 = Right, 2 = None
Modal
LV Level Modal
CL Clear (not valid for Fabrication)
Set to ? to turn off.
Modal
PT Profile Top
Set to ? to turn off.
Modal
Feature WORKPLANE CHANGE NAME
Command WP_CHANGE_NAME[WP=S, NN=S]
Application All
Parameters
Parameter Description Default
WP Plane Name (required) None
NN New Name (required) None
Feature WRAP
Command WRAP[XS=D, YS=D, LV=D, XE=D, YE=D, RA=D]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
XS Seam Axis Start Point X (required) None
YS Seam Axis Start Point Y (required) None
LV Level Modal
XE Seam Axis End Point X (required) None
YE Seam Axis End Point Y (required) None
RA Radius (required) 1.0
Feature WRAP PROCESS
Command WRAP_PROCESS[AX=I, RA=D, MA=I, ML=I]
Application Advanced Milling, FreeForm Machining, Advanced Turning
Parameters
Parameter Description Default
AX Wrap About Axis (required) 0
RA Wrap Radius (required) None
MA Mask 0
ML On Layer None
X [To Top]

No macro commands in this section.

Y [To Top]

No macro commands in this section.

Z [To Top]
Feature ZOOM
Command ZOOM[X1=D, Y1=D, MF=D]
Application All
Parameters
Parameter Description Default
X1 X Center (required)
Values: Screen ordinate value
None
Y1 Y Center (required)
Values: Screen ordinate value
None
MF Magnification Factor
Values: 0 - 999
1.0
Feature Z SORT
Command Z_SORT[E1=I, E2=I]
Notes Sorts the elements in the given range by increasing the Z elevation for their start points in the insert workplane coordinate system. Only the element order changes, no changes are made to the elements themselves.
Application All
Parameters
Parameter Description Default
E1 Start of Continuous Range of Elements to Sort (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None
E2 End of Sort Range (required)
If this is a Named element, the element name (in quotes) can be substituted for the element number.
None

Related Topics

Expressions

Variables

Macro Development Fundamentals Overview

SmartCAM Automation Overview