FEM MaterialEditor: Difference between revisions

From FreeCAD Documentation
No edit summary
({{Code}} instead of syntax higlighting)
Line 14: Line 14:
* Via python:
* Via python:
</translate>
</translate>
{{Code|code=
<syntaxhighlight>
import MaterialEditor
import MaterialEditor
MaterialEditor.openEditor()
MaterialEditor.openEditor()
}}
</syntaxhighlight>
<translate>
<translate>



Revision as of 04:25, 28 November 2018

The Material Editor allows you to edit and save the information contained in a FreeCAD material. Currently such materials are used by the FEM and Arch workbenches.

File:Material editor.jpg

The material editor can currently be accessed by:

import MaterialEditor
MaterialEditor.openEditor()

Options

  • Browser button: Opens the contents of the URL property in a browser
  • Material card: Allows to choose a preset to fill in the fields
  • Open: Opens a .FCMat file
  • Save as: Saves the contents of the editor as a new .FCMat file
  • Preview: Not implemented yet
  • Properties editor: Allows to edit the contents of the material properties
  • Add property: Allows to add a new custom property
  • Delete property: Deletes a selected property. Only custom properties can be deleted

Note:

  • The OK and Cancel buttons have the same effect when the Material editor is not used to edit directly the material property of an existing object.