- (Add) Exposure time finder: Base layers print modes, a option to speed up the print process and merge all base layers in the same height
- (Add) GCode tab: Allow to temporarily edit and use custom gcode
- (Change) Zcode: Omit M18 at end of the gcode to prevent carrier goes up and crash to the limit at a end of a print
This commit is contained in:
Tiago Conceição
2021-07-12 02:01:02 +01:00
parent 683a6f4fb4
commit c289954753
13 changed files with 223 additions and 81 deletions
+4 -3
View File
@@ -19,15 +19,16 @@ namespace UVtools.WPF
{
public bool HaveGCode => IsFileLoaded && SlicerFile.SupportsGCode;
public string GCodeStr => SlicerFile?.GCodeStr;
public uint GCodeLines => !HaveGCode ? 0 : SlicerFile.GCode.LineCount;
public void OnClickRebuildGcode()
{
if (!HaveGCode) return;
var temp = SlicerFile.SuppressRebuildGCode;
SlicerFile.SuppressRebuildGCode = false;
SlicerFile.RebuildGCode();
SlicerFile.SuppressRebuildGCode = temp;
RaisePropertyChanged(nameof(GCodeLines));
RaisePropertyChanged(nameof(GCodeStr));
CanSave = true;
}
@@ -69,7 +70,7 @@ namespace UVtools.WPF
public void OnClickGCodeSaveClipboard()
{
if (!HaveGCode) return;
Application.Current.Clipboard.SetTextAsync(GCodeStr);
Application.Current.Clipboard.SetTextAsync(SlicerFile.GCodeStr);
}
}
}