# MACRO path_group
# this is a macro to cut a group of paths.
#
MACRO: pre_cont_cut
MACRO: safe_start
#ROTARY_POS: B= Bstart;
ASSIGN: Pathstartpt
ASSIGN: Pathendpt
#RAPID: Z= Retract_z;
#RAPID: X= Xstart; Y= Xstart;
ASSIGN: Xac= Xend; Yac= Yend;
#RAPID: Z= Rap_level+ Tool_clearance;
MACRO: rap_lev    Repeats= (lev < 1);
MACRO: tool_lev   Repeats= (lev > 0);
!#RAPID: Z= Tool_clearance- Zorgshift;
ROTARY_POS: B= Bstart;
MACRO: cut_contour
#RAPID: Z= Retract_z- Zorgshift;
ASSIGN: Group_element= Group_element+1;
#OUTPUT: G01G{Comp_cancel}X{Xend}Y{Yend}
