Taking out center on bed for design tools.
This commit is contained in:
parent
4cbb0d6e71
commit
6c22a896d9
11 changed files with 16 additions and 69 deletions
|
|
@ -56,7 +56,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
public const string bottom_clip_amount = nameof(bottom_clip_amount);
|
||||
public const string build_height = nameof(build_height);
|
||||
public const string cancel_gcode = nameof(cancel_gcode);
|
||||
public const string center_part_on_bed = nameof(center_part_on_bed);
|
||||
public const string com_port = nameof(com_port);
|
||||
public const string connect_gcode = nameof(connect_gcode);
|
||||
public const string created_date = nameof(created_date);
|
||||
|
|
|
|||
|
|
@ -116,7 +116,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
new MappedToBoolString("support_material_create_internal_support", "generateInternalSupport"),
|
||||
new MappedToBoolString("support_material_create_perimeter", "generateSupportPerimeter"),
|
||||
new MappedToBoolString("wipe", "wipeAfterRetraction"),
|
||||
new MappedToBoolString(SettingsKey.center_part_on_bed, "centerObjectInXy"),
|
||||
new MappedToBoolString(SettingsKey.expand_thin_walls, "expandThinWalls"),
|
||||
new MappedToBoolString(SettingsKey.merge_overlapping_lines, "MergeOverlappingLines"),
|
||||
new MappedToBoolString(SettingsKey.fill_thin_gaps, "fillThinGaps"),
|
||||
|
|
|
|||
|
|
@ -387,16 +387,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
Slic3rEngineMappings.WriteSliceSettingsFile(configFilePath);
|
||||
|
||||
// if we have centering turend on and are printing a model loaded up from meshes (not gcode)
|
||||
if(ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.center_part_on_bed))
|
||||
{
|
||||
// figure out the center position of this file
|
||||
Vector2 bedCenter = ActiveSliceSettings.Instance.GetValue<Vector2>(SettingsKey.print_center);
|
||||
commandArgs = $"--print-center {bedCenter.x:0.##},{bedCenter.y:0.##} --load \"{configFilePath}\" --output \"{gcodeFilePath}\" \"{fileToSlice}\"";
|
||||
}
|
||||
else
|
||||
{
|
||||
commandArgs = $"--load \"{configFilePath}\" --output \"{gcodeFilePath}\" \"{fileToSlice}\"";
|
||||
}
|
||||
commandArgs = $"--load \"{configFilePath}\" --output \"{gcodeFilePath}\" \"{fileToSlice}\"";
|
||||
break;
|
||||
|
||||
case SlicingEngineTypes.CuraEngine:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue