assignmaterial_from_sherlock_files#

Mechanical.assignmaterial_from_sherlock_files(component_file: str, material_file: str) bool#

Assign material to objects in a design based on a CSV file obtained from Sherlock.

Parameters:
component_filestr

Name of the CSV file containing the component properties, including the material name.

material_filestr

Name of the CSV file containing the material properties.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.AssignMaterial

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> hfss.assignmaterial_from_sherlock_files("components.csv", "materials.csv")