Description
It's inconvenient that "Part::Thickness" doesn't use "mm" units for "Value".
In the example below, to compute the inside diameter of a pipe, the (negative) wall thickness needs to be multiplied with "1mm" before adding to the outside diameter.
Steps To Reproduce
Code: Select all
App.newDocument("Unnamed");
Cylinder = App.ActiveDocument.addObject("Part::Cylinder", "Cylinder")
Gui.ActiveDocument.Cylinder.hide()
Pipe = App.ActiveDocument.addObject("Part::Thickness", "Pipe")
Pipe.Faces = (Cylinder, ["Face2", "Face3"])
Pipe.Mode = 1
Pipe.Value = -1 # negative wall thickness
Spreadsheet = App.ActiveDocument.addObject('Spreadsheet::Sheet', 'Spreadsheet')
Spreadsheet.set('A1', 'Pipe OD')
Spreadsheet.set('B1', 'Pipe WT')
Spreadsheet.set('C1', 'Pipe ID')
Spreadsheet.set('A2', '=2*Cylinder.Radius')
Spreadsheet.set('B2', '=-Pipe.Value*1mm')
Spreadsheet.set('C2', '=2*(Cylinder.Radius + Pipe.Value*1mm)')
App.ActiveDocument.recompute()
# double click Spreadsheet, click on C2 field
Maybe introduce a new property "Offset" that is aliased to "Value" but uses "mm".