FEM MaterialEditor: Difference between revisions

From FreeCAD Documentation
m (Added {{Button}} templates)
mNo edit summary
Line 35: Line 35:


<!--T:4-->
<!--T:4-->
* Arch Workbench:
* [[Image:Workbench_Arch.svg|32px]] [[Arch Module|Arch Workbench]]
** The '''Edit material''' button of the [[Arch SetMaterial|new material]] creation panel of the [[Arch Module|Arch Workbench]]
*: The {{Button|Edit material}} button of the [[Arch SetMaterial|new material]] creation panel of the [[Arch Module|Arch Workbench]]
* FEM Workbench:
* [[Image:Workbench_FEM.svg|32px]] [[FEM Module|FEM Workbench]]
** The menu Models → Material → Material editor
*: The menu {{MenuCommand|Models → Material → Material editor}}
** The icon Material editor
:: The icon Material editor
* Via python:
* Via python (see [[#Scripting|Scripting]] section below)


==Scripting== <!--T:16-->
==Scripting== <!--T:16-->

Revision as of 23:12, 4 February 2020

Material_editor

Menu location
Model → Material → Material editor
Workbenches
FEM
Default shortcut
None
Introduced in version
-
See also
FEM tutorial

Description

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

Usage

The material editor can currently be accessed by:

The icon Material editor

Scripting

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.