As far as I can see the issues are all fixed now. There was one thing left with the truncated numbers which is actually correct behaviour but the InputField class didn't make this transparent to the user. A quantity uses by default the precision set in the user settings under the Units tab when showing a user string. Now the InputField allows the user to enter any text but doesn't validate the input on-the fly wrt precision. This led to the impression that it allows arbitrary precision but it does not. As soon as it reads out the "quantityString" property it retrieves the truncated value.
Code: Select all
q=App.Units.Quantity() q.Format=(7,'f') ui=Gui.UiLoader() f=ui.createWidget("Gui::InputField") f.setProperty("quantityString", q.UserString) # doesn't respect precision of the quantity f.setProperty("quantity", q) # doesn't work due to some PySide limitations but works in C++ f.setProperty("precision", q.Format) f.show()
In my dialog Air doesn't appear!?Select 'Air' as material
I can confirm this behavour, tested on:HoWil wrote: ↑Fri Jan 05, 2018 6:47 pm
Please try this:
Create a new document
Switch to FEM-wb
Add an analysis
Create a FEM-materials for fluids
Select 'Air' as material
Look at the value for Kinematic viscosity (it should say "15,1 mm^2/s")
Reopen the material dialogue
Now the value is set to "1000 mm^2/s"
SolidMaterial has empty References.