exportTraceModel#
- Model.exportTraceModel(layer_params: list[bool | int | float | str]) int #
Export a trace model to a specified output file.
Available Since: 2024R2
- Parameters:
layer_params (list[bool | int | float | str]) – list of parameters for export a trace model of a single copper layer.
- Returns:
Status code of the response. 0 for success.
- Return type:
int
Examples
>>> from ansys.sherlock.core.types.analysis_types import ElementOrder >>> from ansys.sherlock.core import launcher >>> from ansys.api.sherlock.v0 import SherlockModelService_pb2 >>> sherlock = launcher.launch_sherlock() >>> list_of_params_for_layers = [] >>> list_of_params_for_layers.append( sherlock.model.createExportTraceCopperLayerParams( "Tutorial Project", "Main Board", ".\\outputfile_path.stp", "copper-01.odb", False, False, False, False, "mm", SherlockModelService_pb2.MeshType.NONE, False, SherlockModelService_pb2.TraceOutputType.ALL_REGIONS, ElementOrder.LINEAR, 1.0, "mm". 1, False, 1.0, "mm", 1.0 ) ) >>> sherlock.model.exportTraceModel(list_of_params_for_layers)