almost impossible to change material properties using task panel

A forum to discuss the implementation of a good Materials system in FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

almost impossible to change material properties using task panel

Post by uwestoehr »

Word size of FreeCAD: 64-bit, Version: 0.18.15780 (Git)
Build type: Release
Branch: master
Hash: f94e76c1116ec3b818961ff65131b3d86fa5b95e
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0

Using the option "use this task panel" it is very hard to change or enter values:

- add a material, then check the option "use this task panel"

For example in the density field you have "1250,00 kg/m^3". You want to change it to "1700,00 kg/m^3"

- therefore highlight in the field the numbers "25" and type in "70"

result: you get "170,00 kg/m^30" which is an illegal value.

Now assume you want to change the poisson ratio to "0,48"

- thus highlight the complete field for the poisson ratio and type in "0,48"

result: you get "0,000"

- now set the cursor in the poisson ratio field behind the comma and type in e.g. "48"

result: noting happens

The problem is that FC evaluates the input after every key press. This cannot work. It must allow the user to enter and edit numbers as he likes and first when the user clicked on the checkmark in the field its content is evaluated. if there is a mistake the field should be highlighted red.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: almost impossible to change material properties using task panel

Post by bernd »

Yeah as you have noticed already the whole FEM gui needs love.

The idea is to get totally rid of the FEM material eding task panel and do all edits with the material editor.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: almost impossible to change material properties using task panel

Post by uwestoehr »

bernd wrote: Fri Feb 08, 2019 10:33 am The idea is to get totally rid of the FEM material eding task panel and do all edits with the material editor.
OK. I created now issue #3823 to document the issue and your proposed solution.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: almost impossible to change material properties using task panel

Post by bernd »

User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: almost impossible to change material properties using task panel

Post by uwestoehr »

bernd wrote: Tue Feb 19, 2019 8:27 am git commit a12f4f3
Many thanks, works fine now.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: almost impossible to change material properties using task panel

Post by bernd »

Werner has fixed this ...
Post Reply