Material improvements

A forum to discuss the implementation of a good Materials system in FreeCAD
eivindkvedalen
Posts: 600
Joined: Tue Jan 29, 2013 10:35 pm

Re: Material improvements

Postby eivindkvedalen » Fri Sep 06, 2019 7:07 pm

bernd wrote:
Wed Aug 28, 2019 10:45 am
:) wow which branch on https://github.com/eivindkv/FreeCAD? On Py2 or Py3?

How about this ?

eivindkvedalen wrote:
Tue Apr 02, 2019 6:54 pm
bernd wrote:
Tue Apr 02, 2019 5:16 pm
with Python2 and Qt5 I am able to compile this branch. But as soon as an object which has a Shape property is created FreeCAD crashes. Files with meshes or for example an FEM file without the shape saves and reopens fine.
I discovered that as well, and I'm looking into it now...

Eivind
I haven't had time to clean up and push anything. I'll see if I get time to at least push something this weekend.

Eivind
User avatar
bernd
Posts: 9052
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Material improvements

Postby bernd » Fri Sep 06, 2019 8:20 pm

8-)
User avatar
Kunda1
Posts: 6485
Joined: Thu Jan 05, 2017 9:03 pm

Re: Material improvements

Postby Kunda1 » Sat Nov 09, 2019 12:37 pm

Related:
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
bernd
Posts: 9052
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Material improvements

Postby bernd » Sun Jan 05, 2020 10:00 pm

eivindkvedalen wrote:
Fri Aug 23, 2019 6:05 pm
bernd wrote:
Mon Aug 19, 2019 5:21 am
The big App::Link merge has taken place. On rebase I get merge conflicts in a few files:

Code: Select all

       von beiden geändert:    src/App/DynamicProperty.cpp
        von beiden geändert:    src/App/DynamicProperty.h
        von beiden geändert:    src/App/Property.h
        von beiden geändert:    src/App/PropertyExpressionEngine.cpp
        von beiden geändert:    src/App/PropertyStandard.cpp
        von beiden geändert:    src/Mod/Spreadsheet/App/Cell.cpp
If you are still on this it might makes sense to rebase to up to date master.
I managed to compile it on a rebased master today.

Eivind
eivindkvedalen wrote:
Fri Sep 06, 2019 7:07 pm
... I haven't had time to clean up and push anything. I'll see if I get time to at least push something this weekend.
Eivind


Reminder.
User avatar
bernd
Posts: 9052
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Material improvements

Postby bernd » Mon Jan 20, 2020 8:58 pm

eivind ...

would you make your latest dev public?
realthunder
Posts: 1352
Joined: Tue Jan 03, 2017 10:55 am

Re: Material improvements

Postby realthunder » Thu Feb 27, 2020 4:42 am

I didn't go through this entire thread. I jumped from here. Just to clarify some related issue about map accessing. The linked post uses Python code injection for map key retrieval, which has been removed during the big merge for obvious security reason. The current expression parser supports similar list/slice/map accessing syntax as Python. And it accepts expression as index or key. For example, the code in the linked post can be changed to (assuming 'Density' is a property of the current object)

Code: Select all

Panel014.Material.Material[.Density]
It can even be shortened to the following with some small modification to the 'Material' property (I don't know what type exactly), similar to the modification here to sketch's PropertyConstraintList.

Code: Select all

Panel014.Material[.Density]
Try Assembly3 (latest version 0.10.2) along with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal