I figured out that when performing an external build that the materials in
At least in the from github downloaded osx and the 0.16 stable both have all the default materials.
So i can copy the files manually but it would be more nice to do this during the build... but no experinece with make/ cmake so don't know if i can do this...
materials external build not copied
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: materials external build not copied
I hope I understand you: you can keep "your" material files in .FreeCAD directory (user config) and all instances of FreeCAD should be able to access it.
Re: materials external build not copied
No that's not what i meant ...
When looking to FreeCAD/src/Mod/Material/StandardMaterial/ there is a hole bunch of materials.
when i compile out of source (or so... at least compiling to other directory as source) i left with 5 material properties.
When looking to the mac application contend: I can find the materials in Contents/data/Mod/Material/StandardMaterial
so the materials are moved or copied to another directory.
Eighter the precompiled FreeCAD stable have all materials(109 materials).
I can copy self all the materials to this self compiled location... but it would be nice if this happens automatically.
When looking to FreeCAD/src/Mod/Material/StandardMaterial/ there is a hole bunch of materials.
when i compile out of source (or so... at least compiling to other directory as source) i left with 5 material properties.
When looking to the mac application contend: I can find the materials in Contents/data/Mod/Material/StandardMaterial
so the materials are moved or copied to another directory.
Eighter the precompiled FreeCAD stable have all materials(109 materials).
I can copy self all the materials to this self compiled location... but it would be nice if this happens automatically.
Re: materials external build not copied
OK, got it!
Go to src/Mod/Material/CMakeLists.txt and remove #
Go to src/Mod/Material/CMakeLists.txt and remove #
Code: Select all
# collect all the material cards:
#FILE( GLOB MaterialLib_Files ./StandardMaterial/*.FCMat ./StandardMaterial/*.txt ) <-- remove the # to get all materials
SET (MaterialLib_Files
StandardMaterial/None.FCMat
StandardMaterial/ABS.FCMat
StandardMaterial/CalculiX-Steel.FCMat
StandardMaterial/Concrete-Generic.FCMat
StandardMaterial/PLA.FCMat
StandardMaterial/Steel-Generic.FCMat
StandardMaterial/Wood-Generic.FCMat
StandardMaterial/Readme.txt
)
Re: materials external build not copied
thanks... but why is this blocked out?
Re: materials external build not copied
Probably to just not copy a bunch of "non-important" filesJee-Bee wrote:thanks... but why is this blocked out?
If you "make install" the directories will be copied automaticalllly. Change the default CMake Install path before you try this. Look in FEM prefs, there's lots of options to customize this.
"fight the good fight"
Re: materials external build not copied
I have compiled with the #FILE option spared, but I still can not include the materials.
Before:
After:
Any idea ?
Code: Select all
Sed -i '/ GLOB MaterialLib_Files / s / # //' FreeCAD / src / Mod / Material / CMakeLists.txt
Code: Select all
# collect all the material cards:
#FILE( GLOB MaterialLib_Files ./StandardMaterial/*.FCMat ./StandardMaterial/*.txt ) <-- remove the # to get all materials
SET (MaterialLib_Files
StandardMaterial/None.FCMat
StandardMaterial/ABS.FCMat
StandardMaterial/CalculiX-Steel.FCMat
StandardMaterial/Concrete-Generic.FCMat
StandardMaterial/PLA.FCMat
StandardMaterial/Steel-Generic.FCMat
StandardMaterial/Wood-Generic.FCMat
StandardMaterial/Readme.txt
Code: Select all
# collect all the material cards:
FILE( GLOB MaterialLib_Files ./StandardMaterial/*.FCMat ./StandardMaterial/*.txt ) <-- remove the # to get all materials
SET (MaterialLib_Files
StandardMaterial/None.FCMat
StandardMaterial/ABS.FCMat
StandardMaterial/CalculiX-Steel.FCMat
StandardMaterial/Concrete-Generic.FCMat
StandardMaterial/PLA.FCMat
StandardMaterial/Steel-Generic.FCMat
StandardMaterial/Wood-Generic.FCMat
StandardMaterial/Readme.txt