- fixed the GCode generation such that (for milling Geometries) the choice of using (or not) and end position is respected
- for `hpgl` code generation made sure that the first travel line is not marked as a cut line when using a toolchange event
This commit is contained in:
@@ -7,6 +7,11 @@ CHANGELOG for FlatCAM beta
|
|||||||
|
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
|
22.03.2022
|
||||||
|
|
||||||
|
- fixed the GCode generation such that (for milling Geometries) the choice of using (or not) and end position is respected
|
||||||
|
- for `hpgl` code generation made sure that the first travel line is not marked as a cut line when using a toolchange event
|
||||||
|
|
||||||
21.03.2022
|
21.03.2022
|
||||||
|
|
||||||
- optimized the UI for the CNCJob object
|
- optimized the UI for the CNCJob object
|
||||||
|
|||||||
13
camlib.py
13
camlib.py
@@ -4027,12 +4027,16 @@ class CNCjob(Geometry):
|
|||||||
t_gcode += self.doformat(p.lift_code, x=current_pt[0], y=current_pt[1])
|
t_gcode += self.doformat(p.lift_code, x=current_pt[0], y=current_pt[1])
|
||||||
t_gcode += self.doformat(p.spindle_stop_code)
|
t_gcode += self.doformat(p.spindle_stop_code)
|
||||||
|
|
||||||
if isinstance(self.xy_end, tuple):
|
if isinstance(self.xy_end, (tuple, list)):
|
||||||
endx = self.xy_end[0]
|
endx = self.xy_end[0]
|
||||||
endy = self.xy_end[1]
|
endy = self.xy_end[1]
|
||||||
else:
|
else:
|
||||||
endx = 0
|
try:
|
||||||
endy = 0
|
endx = current_pt[0]
|
||||||
|
endy = current_pt[1]
|
||||||
|
except Exception:
|
||||||
|
endx = 0.0
|
||||||
|
endy = 0.0
|
||||||
|
|
||||||
t_gcode += self.doformat(p.end_code, x=endx, y=endy)
|
t_gcode += self.doformat(p.end_code, x=endx, y=endy)
|
||||||
self.app.inform.emit(
|
self.app.inform.emit(
|
||||||
@@ -6600,6 +6604,9 @@ class CNCjob(Geometry):
|
|||||||
command['Z'] = 1
|
command['Z'] = 1
|
||||||
else:
|
else:
|
||||||
command['Z'] = 0
|
command['Z'] = 0
|
||||||
|
match_toolchange = re.search(r"^SP\d*", gline)
|
||||||
|
if match_toolchange:
|
||||||
|
command['Z'] = 1
|
||||||
|
|
||||||
elif 'laser' in self.pp_excellon_name.lower() or 'laser' in self.pp_geometry_name.lower() or \
|
elif 'laser' in self.pp_excellon_name.lower() or 'laser' in self.pp_geometry_name.lower() or \
|
||||||
(self.pp_solderpaste_name is not None and 'paste' in self.pp_solderpaste_name.lower()):
|
(self.pp_solderpaste_name is not None and 'paste' in self.pp_solderpaste_name.lower()):
|
||||||
|
|||||||
Reference in New Issue
Block a user