FEM MaterialEditor: Difference between revisions

From FreeCAD Documentation
m (moved sections around for uniformity)
m (png to svg)
(One intermediate revision by the same user not shown)
Line 25: Line 25:


<!--T:19-->
<!--T:19-->
The Material Editor allows you to edit and save the information contained in a [[Material|FreeCAD material]]. Currently such materials are used by the [[FEM Module|FEM]] and [[Arch Module|Arch]] workbenches.
The Material Editor allows you to edit and save the information contained in a [[Material|FreeCAD material]]. Currently such materials are used by the {{KEY|[[Image:Workbench_FEM.svg|24px]] [[FEM Module|FEM]]}} and {{KEY|[[Image:Workbench_Arch.svg|24px]] [[Arch Module|Arch]]}} workbenches.


<!--T:2-->
<!--T:2-->
Line 37: Line 37:
<!--T:4-->
<!--T:4-->
# [[Image:Workbench_Arch.svg|32px]] [[Arch Module|Arch Workbench]]
# [[Image:Workbench_Arch.svg|32px]] [[Arch Module|Arch Workbench]]
#* The [[Image:Arch SetMaterial.png|32px]] [[Arch SetMaterial|Set Material]] button of the [[Arch SetMaterial|New material]] creation panel of the [[Arch Module|Arch Workbench]]
#* The [[Image:Arch_SetMaterial.svg|32px]] [[Arch SetMaterial|Set Material]] button of the [[Arch SetMaterial|New material]] creation panel of the [[Arch Module|Arch Workbench]]
#* The menu {{MenuCommand|Arch → Set material...}} entry
#* The menu {{MenuCommand|Arch → Set material...}} entry
# [[Image:Workbench_FEM.svg|32px]] [[FEM Module|FEM Workbench]]
# [[Image:Workbench_FEM.svg|32px]] [[FEM Module|FEM Workbench]]

Revision as of 16:44, 18 February 2020

Material editor

Menu location
Model → Material → Material editor
Workbenches
FEM, Arch
Default shortcut
None
Introduced in version
0.18
See also
Material, Arch SetMaterial, 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 either:

  1. Arch Workbench
  2. FEM Workbench
    • The Material editor icon
    • The menu Models → Material → Material editor entry
  3. Via python (see Scripting section below)

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.

Scripting

import MaterialEditor
MaterialEditor.openEditor()