# MACRO cut_contour
# this is a macro to cut a path.
# Insert diameter comp in a move to the path start point
# Cuts the path
# Turns off comp in a move away from the contour
#
CUTPATH: 
ASSIGN: Pathendpt
ASSIGN: Cut_compx= Xnormal*Lead_out;
ASSIGN: Cut_compy= Ynormal*Lead_out;
ASSIGN: Pre_posx= Xend+ Cut_compx;
ASSIGN: Pre_posy= Yend+ Cut_compy;
ASSIGN: X= Pre_posx; Y= Pre_posy;
FEED: 	
OUTPUT:	G40
