material editor

A forum to discuss the implementation of a good Materials system in FreeCAD
User avatar
kkremitzki
Posts: 1713
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: material editor

Postby kkremitzki » Wed Aug 01, 2018 12:42 am

yorik wrote:
Tue Jul 31, 2018 7:05 pm
The crash is probably due to the expat bug on debian-based systems. Everything that uses xml in python crashes. But @kkremitzki is working on this I think... I propose to postpone to merge your PR until we know a bit more from him because otherwise it will make the mat editor unusable for a large portion of users...
Indeed, the proper approach is to backport coin for the fix, but unfortunately the state of the coin3 source package is a bit weird right now in that somehow, the version which is currently in Debian fails to build outright for reasons that seem like they should have prevented the package from getting uploaded in the first place. But once I've gotten that resolved, I'll have something that I can upload to the PPA, but I'll also need to get in touch with someone on the Ubuntu side of things to get it backported there as well. So, in essence, things are still a bit TBD.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
bernd
Posts: 8353
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: material editor

Postby bernd » Sun Aug 19, 2018 7:03 pm

damian wrote:
Mon Jul 23, 2018 5:21 pm
/home/damian/freecad/src/Mod/Material/MatPropDict.xml
If we only have problems with xml, why should we use it? It is not even human readable (at least not easy). We could just use a python dict like we do ATM ... https://github.com/FreeCAD/FreeCAD/blob ... #L103-L165
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: material editor

Postby damian » Sun Aug 19, 2018 7:44 pm

Because of the crash with the 'accept' and 'reject' buttons is previous to introduce the xml file. They also crashed with the original tuple.
I suppose that it's possible to do something with the methods accept and reject, but I don't know what.
I have other model-view working very well, in the task panel and the buttons with getStandardButtons(self) ...
User avatar
bernd
Posts: 8353
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: material editor

Postby bernd » Sat Jan 05, 2019 6:00 am

it is in master ... git commit 195c530 :D

I found some issue ...
- start FreeCAD
- change to FEM workbench
- open material editor by click on material editor icon (the only active icon if on file is loaded ;) )
- change to material "Steel-Generic", any other which has Thermal --> Specific heat filled does the job too
- ATM there is in Steel-Generic a specific heat of 500 J/kg/K but on double click the unit changes, and if the unit is changed back to J/kg/K the unit is not accepted.
- In FEM material task panel the J/kg/K is accepted

bernd

OS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15557 (Git)
Build type: Unknown
Branch: master
Hash: 9f2904e8ec9fc7075d83713a1ed1b33d7ca8d0b0
Python version: 3.7.2rc1
Qt version: 5.11.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)
User avatar
bernd
Posts: 8353
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: material editor

Postby bernd » Sat Jan 26, 2019 9:22 pm

bernd wrote:
Sat Jan 05, 2019 6:00 am
I found some issue ...
- start FreeCAD
- change to FEM workbench
- open material editor by click on material editor icon (the only active icon if on file is loaded ;) )
- change to material "Steel-Generic", any other which has Thermal --> Specific heat filled does the job too
- ATM there is in Steel-Generic a specific heat of 500 J/kg/K but on double click the unit changes, and if the unit is changed back to J/kg/K the unit is not accepted.
issue #3781
User avatar
uwestoehr
Posts: 696
Joined: Sun Jan 27, 2019 3:21 am

Re: material editor

Postby uwestoehr » Fri Feb 08, 2019 11:58 pm

bernd wrote:
Sat Jan 26, 2019 9:22 pm
issue #3781
[/quote]

This issue got fixed by Bernd in https://github.com/FreeCAD/FreeCAD/comm ... 7b36056c8f
chrisb
Posts: 18223
Joined: Tue Mar 17, 2015 9:14 am

Re: material editor

Postby chrisb » Sun Feb 10, 2019 10:42 pm

Should it be closed?
User avatar
bernd
Posts: 8353
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: material editor

Postby bernd » Mon Feb 11, 2019 6:16 am

chrisb wrote:
Sun Feb 10, 2019 10:42 pm
Should it be closed?
yes with this commit it was fixed git commit f05d8c3
User avatar
bernd
Posts: 8353
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: material editor

Postby bernd » Mon Feb 11, 2019 6:48 am

bernd wrote:
Mon Feb 11, 2019 6:16 am
chrisb wrote:
Sun Feb 10, 2019 10:42 pm
Should it be closed?
yes with this commit it was fixed git commit f05d8c3
done