Improvements to material editor and card handling

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!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Improvements to material handling

Post by Kunda1 »

Thanks for your contribution @grandcross!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
grandcross
Posts: 350
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: Improvements to material handling

Post by grandcross »

Kunda1 wrote: Sun Apr 09, 2023 11:26 pm Thanks for your contribution @grandcross!
Thank me when it's merged and running! :lol:

As you know the Rocket Workbench is my primary focus, but I'll definitely dig into the core when I think I can help i.e. when I won't break anything too badly.
User avatar
grandcross
Posts: 350
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: Improvements to material handling

Post by grandcross »

Another usability improvement:

The user enters the card name and selects save. The default card name in the save dialog is 'Material.FCMat' instead of '<user specified name'.FCMat'
User avatar
grandcross
Posts: 350
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: Improvements to material handling

Post by grandcross »

Yet another usability improvement. There may be more as I test changes and discover things.

There is a default custom property entry called None. At the moment this value can be edited... I don't think this should be possible. Adding a custom property should remove the None property. Removing all custom properties should restore it.

Thoughts?
User avatar
grandcross
Posts: 350
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: Improvements to material editor and card handling

Post by grandcross »

I've updated the thread title to better reflect what I'm doing. Really these updates only address how material cards are found (path) and the material editor. There are no real changes to how materials are handled.

Maybe I'll take that on in the next release depending on how the summer of code effort works out.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Improvements to material editor and card handling

Post by Kunda1 »

Maybe we should ping some of the third party add-on devs that are fem related that may be impacted by this change?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
grandcross
Posts: 350
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: Improvements to material editor and card handling

Post by grandcross »

Kunda1 wrote: Wed Apr 12, 2023 1:36 pm Maybe we should ping some of the third party add-on devs that are fem related that may be impacted by this change?
Certainly.

Which change(s) are you concerned about?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Improvements to material editor and card handling

Post by Kunda1 »

Guessing for them to look at the code and give some feedback ?

CC
@oliveroxtoby (CFDoF)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
cadcam
Posts: 273
Joined: Thu Apr 02, 2020 10:39 am

Re: Improvements to material editor and card handling

Post by cadcam »

It may exist, in which case ignore.
It might be useful to have a easily accessed/seen matrix/spreadsheet which
shows all the material properties handled by the 'editor ' and which wb uses them also possibly if they are critical for use with that wb.

BW
User avatar
grandcross
Posts: 350
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: Improvements to material editor and card handling

Post by grandcross »

Here's a link to the material template. No entries are considered required, although certain properties will be required for a certain function can work. New properties can be added as custom properties where required, but the list is easy to expand if there is a case for it.

https://github.com/FreeCAD/FreeCAD/blob ... terial.yml

Many material cards autogenerated by the Rocket Workbench for example will only have density, but for flutter analysis you need one of Shear Modulus and Youngs Modulus/Poisson Ratio. Other analyzers or workbenches are likely to require more.
Post Reply