FEM MaterialEditor: Difference between revisions

From FreeCAD Documentation
m (added icon)
m (png to svg)
(8 intermediate revisions by the same user not shown)
Line 16: Line 16:
|Icon=Arch_Material_Group.svg
|Icon=Arch_Material_Group.svg
|MenuLocation=Model → Material → Material editor
|MenuLocation=Model → Material → Material editor
|Workbenches=[[Fem Workbench|FEM]]
|Workbenches=[[Fem Workbench|FEM]], [[Arch Module|Arch]]
|Shortcut=
|Shortcut=
|Version=0.18
|SeeAlso=[[FEM_tutorial|FEM tutorial]]
|SeeAlso=[[Material|Material]], [[Arch SetMaterial|Arch SetMaterial]], [[FEM_tutorial|FEM tutorial]]
}}
}}


Line 24: 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 32: Line 33:


<!--T:15-->
<!--T:15-->
The material editor can currently be accessed by:
The material editor can currently be accessed by either:


<!--T:4-->
<!--T:4-->
* [[Image:Workbench_Arch.svg|32px]] [[Arch Module|Arch Workbench]]
# [[Image:Workbench_Arch.svg|32px]] [[Arch Module|Arch Workbench]]
*: The {{Button|Edit 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|ArchSet material...}} entry
* [[Image:Workbench_FEM.svg|32px]] [[FEM Module|FEM Workbench]]
# [[Image:Workbench_FEM.svg|32px]] [[FEM Module|FEM Workbench]]
*: The menu {{MenuCommand|ModelsMaterial → Material editor}}
:: The [[Image:Arch Material Group.svg|24px]] [[Material editor]] icon
#* The [[Image:Arch Material Group.svg|32px]] [[Material editor]] icon
#* The menu {{MenuCommand|Models → Material → Material editor}} entry
* Via python (see [[#Scripting|Scripting]] section below)
# Via python (see [[#Scripting|Scripting]] section below)

==Scripting== <!--T:16-->
</translate>
{{Code|code=
import MaterialEditor
MaterialEditor.openEditor()
}}
<translate>


== Options == <!--T:5-->
== Options == <!--T:5-->
Line 67: Line 61:
<!--T:8-->
<!--T:8-->
* The {{Button|OK}} and {{Button|Cancel}} buttons have the same effect when the Material editor is not used to edit directly the material property of an existing object.
* The {{Button|OK}} and {{Button|Cancel}} buttons have the same effect when the Material editor is not used to edit directly the material property of an existing object.

==Scripting== <!--T:16-->
</translate>
{{Code|code=
import MaterialEditor
MaterialEditor.openEditor()
}}
<translate>


<!--T:11-->
<!--T:11-->
Line 81: Line 83:
{{FEM Tools navi}}
{{FEM Tools navi}}


<!--T:20-->
{{Arch Tools navi}}
{{Arch Tools navi}}



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()