FEM MaterialEditor: Difference between revisions

From FreeCAD Documentation
mNo edit summary
m (png to svg)
(25 intermediate revisions by 4 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:13-->
<!--T:13-->
{{Docnav
{{docnav|[[FEM_MaterialMechanicalNonlinear|Nonlinear mechanical material]]|[[FEM_ElementGeometry1D|Beam cross section]]|[[FEM_Module|FEM_Module]]}}
|[[FEM_MaterialMechanicalNonlinear|Nonlinear mechanical material]]
|[[FEM_ElementGeometry1D|Beam cross section]]
|[[FEM_Module|FEM]]
|IconL=FEM_MaterialMechanicalNonlinear.png
|IconC=Workbench_FEM.svg
|IconR=FEM_ElementGeometry1D.png
}}


<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand|Name=Material_editor|Icon=Arch_Material_Group.svg|MenuLocation=Model → Material → Material editor||Workbenches=[[Fem Workbench|FEM]]|Shortcut=|SeeAlso=[[FEM_tutorial|FEM tutorial]]}}
|Name=Material editor
|Icon=Arch_Material_Group.svg
|MenuLocation=Model → Material → Material editor
|Workbenches=[[Fem Workbench|FEM]], [[Arch Module|Arch]]
|Shortcut=
|Version=0.18
|SeeAlso=[[Material|Material]], [[Arch SetMaterial|Arch SetMaterial]], [[FEM_tutorial|FEM tutorial]]
}}

==Description== <!--T:14-->


<!--T:19-->
==Description==
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-->
[[Image:Material editor.jpg]]
[[Image:Material editor.jpg]]


<!--T:3-->
==Usage== <!--T:3-->
==How to use==


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


<!--T:4-->
<!--T:4-->
* The '''Edit material''' button of the [[Arch SetMaterial|new material]] creation panel of the [[Arch Module|Arch Workbench]]
# [[Image:Workbench_Arch.svg|32px]] [[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]]
* Via python:
#* The menu {{MenuCommand|Arch → Set material...}} entry

# [[Image:Workbench_FEM.svg|32px]] [[FEM Module|FEM Workbench]]
==Scripting==
#* The [[Image:Arch Material Group.svg|32px]] [[Material editor]] icon
</translate>
#* The menu {{MenuCommand|Models → Material → Material editor}} entry
{{Code|code=
# Via python (see [[#Scripting|Scripting]] section below)
import MaterialEditor
MaterialEditor.openEditor()
}}
<translate>


== Options == <!--T:5-->
== Options == <!--T:5-->
Line 35: Line 49:
* '''Browser button''': Opens the contents of the URL property in a browser
* '''Browser button''': Opens the contents of the URL property in a browser
* '''Material card''': Allows to choose a preset to fill in the fields
* '''Material card''': Allows to choose a preset to fill in the fields
* '''Open''': Opens a .FCMat file
* {{Button|Open}}: Opens a .FCMat file
* '''Save as''': Saves the contents of the editor as a new .FCMat file
* {{Button|Save as}}: Saves the contents of the editor as a new .FCMat file
* '''Preview''': Not implemented yet
* '''Preview''': Not implemented yet
* '''Properties editor''': Allows to edit the contents of the material properties
* '''Properties editor''': Allows to edit the contents of the material properties
* '''Add property''': Allows to add a new custom property
* {{Button|Add property}}: Allows to add a new custom property
* '''Delete property''': Deletes a selected property. Only custom properties can be deleted
* {{Button|Delete property}}: Deletes a selected property. Only custom properties can be deleted


<!--T:7-->
<!--T:7-->
Line 46: Line 60:


<!--T:8-->
<!--T:8-->
* 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.
* 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.


<!--T:9-->
==Scripting== <!--T:16-->
</translate>
{{Userdocnavi}}
{{Code|code=

import MaterialEditor
<!--T:10-->
MaterialEditor.openEditor()
[[Category:Command Reference]]
}}
<translate>


<!--T:11-->
<!--T:11-->
{{Docnav
{{docnav|[[FEM_MaterialMechanicalNonlinear|Nonlinear mechanical material]]|[[FEM_ElementGeometry1D|Beam cross section]]|[[FEM_Module|FEM_Module]]}}
|[[FEM_MaterialMechanicalNonlinear|Nonlinear mechanical material]]
|[[FEM_ElementGeometry1D|Beam cross section]]
|[[FEM_Module|FEM]]
|IconL=FEM_MaterialMechanicalNonlinear.png
|IconC=Workbench_FEM.svg
|IconR=FEM_ElementGeometry1D.png
}}

<!--T:17-->
{{FEM Tools navi}}
{{FEM Tools navi}}

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

<!--T:9-->
{{Userdocnavi}}
{{Userdocnavi}}

</translate>
</translate>
{{clear}}
{{clear}}

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