I tried to add new material cards. If they where added to the installation path of FreeCAD, everything is fine.
On windows
C:\Program Files\FreeCAD 0.14\data\Mod\Material\StandardMaterial
I was not able to add them to the user path. On Windows the path FreeCAD.ConfigGet('UserAppData') is:
C:\Users\bhb\AppData\Roaming\FreeCAD
so I copied one of the card of FreeCAD to
C:\Users\bhb\AppData\Roaming\FreeCAD\data\Mod\Material\StandardMaterial\wood.FCMat
but FreeCAD does not recognise the MaterialCard
I wonder if it is generally possible to save MaterialCards somewhere in the path FreeCAD.ConfigGet('UserAppData')
add new material cards
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: add new material cards
It depends for what you want to use them I think?
But indeed there aren't many options yet for materials...
But indeed there aren't many options yet for materials...
Re: add new material cards
They can be used in the FemWB allready ... Found it for FemWB there. The FemWB only reads the Cards from the AppPath.yorik wrote:It depends for what you want to use them I think?
But indeed there aren't many options yet for materials...
https://github.com/FreeCAD/FreeCAD_sf_m ... aterial.py line 218
Code: Select all
dirname = FreeCAD.ConfigGet("AppHomePath")+"data/Mod/Material/StandardMaterial"
Code: Select all
dirname = FreeCAD.ConfigGet("UserAppData")+"data/Mod/Material/StandardMaterial"
Re: add new material cards
Ideally there should be a preference option to store one's own materials path...
But if you write new material cards, please put them in the standard place, and share them with us I'll be happy to merge them in the source code
But if you write new material cards, please put them in the standard place, and share them with us I'll be happy to merge them in the source code