GeneralProperties

General information about a single element: its material and the shape it belongs to.

Examples

stage = gx.get_current_project().get_models_and_stages()[0]
g = stage.output.solid[0].general
g.material_name, g.material_model, g.shape_id

See also

Properties

material_name : str
Name of the element's material (empty string when there is none).
color
Display colour of the element's material (empty string when there is none).
shape_id : int
ID of the shape the element belongs to, or None if not available.
material_model : str
Name of the material model of the element's material, or None if not available.
result_point_name : str
Result point name (result point meshes only, else None).
result_point_index : int
Result point index (result point meshes only, else None).