Set the ship values in meters
This commit is contained in:
parent
93fc937bd1
commit
493d1cc48b
|
@ -47,9 +47,9 @@ class TaskPanel:
|
|||
form.length = self.widget(QtGui.QDoubleSpinBox, "Length")
|
||||
form.breadth = self.widget(QtGui.QDoubleSpinBox, "Breadth")
|
||||
form.draft = self.widget(QtGui.QDoubleSpinBox, "Draft")
|
||||
obj.Length = form.length.value()
|
||||
obj.Breadth = form.breadth.value()
|
||||
obj.Draft = form.draft.value()
|
||||
obj.Length = '{} m'.format(form.length.value())
|
||||
obj.Breadth = '{} m'.format(form.breadth.value())
|
||||
obj.Draft = '{} m'.format(form.draft.value())
|
||||
App.ActiveDocument.recompute()
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user