From a92b7e3adeedbdc1a8f084aca0be248bb713e7c2 Mon Sep 17 00:00:00 2001 From: Javierma87 Date: Mon, 22 Feb 2016 11:06:22 +0000 Subject: [PATCH] Changed requirements and solution file for Slic3r integration --- docs-tfg/req_sol_slic3r_integration.txt | 22 ++++++++++++++++++- .../static/js/app/viewmodels/files.js | 2 +- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/docs-tfg/req_sol_slic3r_integration.txt b/docs-tfg/req_sol_slic3r_integration.txt index 0ed4718c2..8f57895f5 100644 --- a/docs-tfg/req_sol_slic3r_integration.txt +++ b/docs-tfg/req_sol_slic3r_integration.txt @@ -12,6 +12,26 @@ Requirements to integrate Slic3r in order to achieve slicing using the terminal: -Print settings -Filament settings -Printer settings - -A checkbox to ask the user if he wishes to maintain the stl file after slicing or not + -A checkbox to ask the user if he wishes to maintain the stl file after slicing or not -When slicing one or multiple objects, delete stl file if user chose that option in settings + + EDIT + + -Notify user if something went wrong searching for files both for slicing parameters and for command to create the gcode + + -When imported a file, check if slic3r profile contains parameters even though they are not in default settings, so no slic3r version requirement is needed + + -Addition of a wiki so the user can install the plugin properly + +Solutions to meet requirements: + + -Instead of starting from zero, a fork of OctoPrint-Slic3r repository has been done, so part of the work could be avoided + + -The forked files were cloned and later copied to .octoprint/plugins so it can be detected by OctoPrint + + -Slic3r was cloned from its repository and installed using Perl as stable versions already compiled didn't meet architecture requirements + + -As it was already done, it was not needed to create the web part. Due to this, the fourth requirement was changed to the following: + + -With the file uploaded, obtain information of related files where slicing parameters are located. This way, less files need to be uploaded as long as they are under server OS folders. diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index addabf2ad..bb961e91c 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -426,7 +426,7 @@ $(function() { if(self.loginState.isUser()&&data["gcodeAnalysis"]["warning"]) { var warning = "

" + gettext("Object exceeds printing area") + "

"; - warning += pnotifyAdditionalInfo("
Object or objects in file '"+data["name"]+"' exceeds the printing area
"); + warning += pnotifyAdditionalInfo("
Object or objects in file '"+data["name"]+"' exceed/s the printing area
"); new PNotify({ title: "Object dimensions", text: warning,