get_objects_by_material#
- Modeler2D.get_objects_by_material(materialname=None)[source]#
Retrieve a list of objects either of a specified material or classified by material.
- Parameters:
- materialname
str
Name of the material. The default is
None
.
- materialname
- Returns:
- list of class:pyaedt.modeler.cad.object3d.Object3d
If a material name is not provided, the method returns a list of dictionaries where keys are material names of conductors, dielectrics, gases and liquids respectively in the design and values are objects assigned to these materials. If a material name is provided, the method returns a list of objects assigned to the material.
References
>>> oEditor.GetObjectsByMaterial