Commit Graph

59 Commits

Author SHA1 Message Date
David Carter
6624fa3775 Material: Material handling enhancements
Rework of the material handling system.

This first part concntrates on a rework of the material cards.
Rather than use a fixed list of possible properties, properties can
be defined separately in their own files and mixed to provide a
complete list of possible properties. Properties can be inherited.

The cards then provide values for the properties. These can also
be inherited allowing for small changes in cards as required.

The new property definitions are more extensive than previously.
2 and 3 dimensional arrays of properties can be defined. Values
are obtained by calling an API instead of reading from a dictionary.

For compatibility, a Python dictionary of values can be obtained
similar to how it was done previously, but this is considered a
deprecated API and won't support the newer advanced features.

The editor is completely reworked. It will be able to edit older format
material cards, but can only save them in the new format.

For testing during the development phase, a system preference can
specifiy wether the old or new material editors are to be used. This
option will be removed before release.
2023-09-25 11:04:01 -04:00
Roy-043
79a31d7483 Material: Avoid dictionary.keys() where possible 2023-08-10 00:59:02 +02:00
luzpaz
129d5882a7 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
luz paz
95d89622de Fix header uniformity for various workbenches/directories
Also includes some trailing whitespace fixes
2022-11-29 04:48:57 +01:00
Bernd Hahnebach
cfcf8df4ce Material: matcard reader, fix some problems 2021-07-14 16:07:36 +02:00
luz paz
a9300c2141 Fix FEM and Material typos
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,ontop,orgin,orginx,orginy,ot,pard,parms,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/doc/SourceDocu`
2021-07-14 10:48:20 +02:00
Bernd Hahnebach
2fe036e823 Material: card reader, do not break if error on card reading. 2021-07-13 20:41:38 +02:00
Bernd Hahnebach
9a564dd906 Maaterial: card writer, force to use utf-8 2021-07-13 17:55:21 +02:00
Bernd Hahnebach
78924196db Material: better warning message if card name is not file name 2021-07-13 17:42:25 +02:00
Bernd Hahnebach
3e14f499e5 Material: matcard writer, print error if no card name is provided on save 2021-07-13 17:42:19 +02:00
Bernd Hahnebach
6257ec125e Material: matcard writer, get rid of Python 2 code 2021-07-13 17:42:13 +02:00
Bernd Hahnebach
50c76181af Material: code formating, spaces 2020-01-06 00:02:20 +01:00
Dietmar Czekay
c3f0288ea5 add VacuumPermittivity and fix adding user values to material editor in FEM 2019-09-04 11:29:09 -03:00
luz.paz
9453e68e23 Misc. source comment typo and whitespace fixes
Found via codespell
2019-06-16 20:47:07 +02:00
Bernd Hahnebach
3abd3fcc2e Materials: white space 2019-06-11 10:37:08 +02:00
Bernd Hahnebach
6380b28e24 Materials: card reader, delete not needed variable 2019-06-08 22:35:26 +02:00
Bernd Hahnebach
f68958cd07 Material: card reader, do not break reading if saved with depretiated writer 2019-06-08 22:24:48 +02:00
Bernd Hahnebach
6e5ec327c9 Materials: card writer, add whitspace between FreeCAD and version string 2019-06-03 22:17:50 +02:00
Bernd Hahnebach
b68ddaafca Material: card utils and import, add some code examples 2019-04-25 20:43:07 +02:00
Bernd Hahnebach
3f5f53e91f Material: mat card template for material editor, move to a much more pythonic one 2019-04-25 20:43:07 +02:00
Bernd Hahnebach
80bf21c3d6 Material: import card module, code formating, comments and prints 2019-04-23 09:12:55 +02:00
luz.paz
9079de7516 Material: fix typos
Found via codespell
Thought this would merit a pre-0.18 release commit because of `./src/Mod/Material/StandardMaterial/TEMPLATE.FCMat`
2019-03-02 18:11:45 -05:00
Bernd Hahnebach
93456fda4c Material: card writer, get rid of double new line on file end 2019-03-02 18:13:10 +01:00
Bernd Hahnebach
e481af1369 Material: card writer, better meta comments 2019-03-02 18:13:10 +01:00
Bernd Hahnebach
f8771be49a Material, card writer, add parameter to switch off group section writing (it is how material cards look like ATM) 2019-03-02 18:13:09 +01:00
Bernd Hahnebach
83a40a3273 Material, card writer, move comment 2019-03-02 18:13:09 +01:00
Bernd Hahnebach
1f2e0fb9e5 Material: card writer, add white spaces around = 2019-03-02 18:13:09 +01:00
wmayer
070a153757 fixes 0003865: non-ASCII characters incorrectly displayed in material cards
The combination Py2+Qt5 already worked, this change now fixes the combinations Py2+Qt4 and Py3+Qt5
2019-02-26 19:26:00 +01:00
Bernd Hahnebach
cad3019da5 Material: card parser, more important comments 2019-02-21 13:51:43 +01:00
Bernd Hahnebach
899f3df2fe Material: card header, use the same header in all code files 2019-02-19 10:27:26 -03:00
Bernd Hahnebach
ef79d20bfa Material, mat card writer, do not write empty sections 2019-02-15 19:02:43 +01:00
Bernd Hahnebach
7f2ad7fbbf Material: mat card parser, there are two parsers in FreeCAD, make some comments about the existance of each other 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
3b579190ea Material: card reader and writer, use file card name as CardName property 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
e0be3e474e Material: card reader, fix for values containing a = 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
76d1f0aa8e Material: card writer, some comments 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
3c3d9bca58 Material: card writer, do not handle source as comment in mat card 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
22f59570c8 Material: card writer, move FreeCAD version info behind matcard info, std in original cards 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
b94ebbecc5 Material: Py3, get rid of extra bees on printing 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
216106e407 Material: Py3 fixes in mat card writer 2019-02-11 15:18:24 +01:00
Bernd Hahnebach
bc31a9afcd Material: code formating, flake8 2019-01-05 12:17:52 +01:00
Bernd Hahnebach
b3de953c18 Material: code formating, file beginnings Python block comment with space, flake8 E265 2019-01-05 12:17:52 +01:00
Yorik van Havre
91a61d4813 Material: Fixed py3/import issues 2018-12-29 14:40:25 -02:00
caceres
195c530c00 Material: MaterialEditor migrate to model/view 2018-12-29 12:47:30 -02:00
looooo
1476caf281 py3: iteritems -> items, iterkeys -> keys 2018-12-08 11:27:22 -03:00
Yorik van Havre
7fabfde0ef py3 compatibility fixes 2018-10-27 16:04:51 -03:00
Bernd Hahnebach
9ce4111cee py3: define more unicode for python3, see commit 7ad0c7f7 2018-08-07 16:57:00 +02:00
Bernd Hahnebach
184a566da3 Material: move materal property list into material module and use this for material editor ui and writing of mat files 2018-06-10 20:54:23 +02:00
Bernd Hahnebach
1e844d4f53 Material, code formating, flake8 compatible code 2018-06-10 20:54:23 +02:00
Bernd Hahnebach
6ae0aa0659 Material: Editor and import, only use mat keys if they have a value 2018-06-01 08:21:31 +02:00
Bernd Hahnebach
bf11a5f239 Material: Editor and import, fix openfile and savefile if no filename is given, make open and save work the same way 2018-06-01 08:21:28 +02:00