Material: card writer, better meta comments
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
; TEMPLATE
|
||||
; (c) 2013-2015 Juergen Riegel (CC-BY 3.0)
|
||||
; information about the content of such cards you can find here:
|
||||
; http://www.freecadweb.org/wiki/index.php?title=Material
|
||||
; information about the content of such cards can be found on the wiki:
|
||||
; https://www.freecadweb.org/wiki/Material
|
||||
|
||||
; localized Name, Description and KindOfMaterial uses 2 letter codes
|
||||
; defined in ISO-639-1, see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; My new amazing material file
|
||||
; card_file_name
|
||||
; (c) 2015 Your Name (CC-BY 3.0)
|
||||
; information about the content of such cards you can find here:
|
||||
; http://www.freecadweb.org/wiki/index.php?title=Material
|
||||
; information about the content of such cards can be found on the wiki:
|
||||
; https://www.freecadweb.org/wiki/Material
|
||||
|
||||
|
||||
@@ -189,9 +189,9 @@ def write(filename, dictionary, write_group_section=True):
|
||||
else:
|
||||
f.write("; " + header["CardName"].encode("utf8") + "\n")
|
||||
f.write("; " + header["AuthorAndLicense"].encode("utf8") + "\n")
|
||||
f.write("; information about the content of such cards you can find here:\n")
|
||||
f.write("; http://www.freecadweb.org/wiki/index.php?title=Material\n")
|
||||
f.write("; file produced by FreeCAD" + rev + "\n")
|
||||
f.write("; information about the content of such cards can be found on the wiki:\n")
|
||||
f.write("; https://www.freecadweb.org/wiki/Material\n")
|
||||
f.write("; file created by FreeCAD" + rev + "\n")
|
||||
f.write("\n")
|
||||
# write sections
|
||||
# write standard FCMat section if write group section parameter is set to False
|
||||
|
||||
Reference in New Issue
Block a user