# MACRO cut_surf_path
# this is a macro to cut a path on a 3d surface.
# It will position over the XY point defined by Xstart,Ystart
# Rapid in Z to the Rap Level
# Feed in Z to the Finish depth
# Cuts the path
# retracts to the retract level.
#
ASSIGN: Surfstartpt
ROTARY_POS: A= Astart;
POSITION_XY: X= Xstart ;Y= Ystart;
RAPID: X= Xstart; Y= Ystart; Z= Retract_z;
RAPID: Z= Zstart+ Tool_clearance; 
FEED: Z= Zstart; Feed= Zfeed;
ASSIGN: Feed= Tfeed;
CUTSURF:
ASSIGN: Surfendpt
RAPID: X= Xend; Y= Yend; Z= Retract_z;
ASSIGN: Path= Path+1;
