Path: Add Property to Job for geometry tolerance
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
from FreeCAD import Units
|
||||
from PySide import QtCore, QtGui
|
||||
from PathScripts.PathPreferences import PathPreferences
|
||||
from PathScripts.PathPostProcessor import PostProcessor
|
||||
@@ -45,7 +46,8 @@ class JobPreferencesPage:
|
||||
item = self.form.postProcessorList.item(i)
|
||||
if item.checkState() == QtCore.Qt.CheckState.Unchecked:
|
||||
blacklist.append(item.text())
|
||||
PathPreferences.savePostProcessorDefaults(processor, args, blacklist)
|
||||
geometryTolerance = Units.Quantity(self.form.geometryTolerance.text())
|
||||
PathPreferences.savePostProcessorDefaults(processor, args, blacklist, geometryTolerance)
|
||||
|
||||
path = str(self.form.leOutputFile.text())
|
||||
policy = str(self.form.cboOutputPolicy.currentText())
|
||||
@@ -92,6 +94,10 @@ class JobPreferencesPage:
|
||||
self.verifyAndUpdateDefaultPostProcessorWith(PathPreferences.defaultPostProcessor())
|
||||
|
||||
self.form.defaultPostProcessorArgs.setText(PathPreferences.defaultPostProcessorArgs())
|
||||
|
||||
geomTol = Units.Quantity(PathPreferences.defaultGeometryTolerance(), Units.Length)
|
||||
self.form.geometryTolerance.setText(geomTol.UserString)
|
||||
|
||||
self.form.leOutputFile.setText(PathPreferences.defaultOutputFile())
|
||||
self.selectComboEntry(self.form.cboOutputPolicy, PathPreferences.defaultOutputPolicy())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user