exportTraceModel#
- Model.exportTraceModel(layer_params)#
Export a trace model to a specified output file.
Available Since: 2024R2
- Parameters:
layer_params (list) – 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 import launcher >>> from ansys.api.sherlock.v0 import SherlockModelService_pb2 >>> from ansys.api.sherlock.v0 import SherlockAnalysisService_pb2 >>> sherlock = launcher.launch_sherlock() >>> list_of_params_for_layers = [] >>> list_of_params_for_layers.add( 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, SherlockAnalysisService_pb2.ElementOrder.Linear, 1.0, "mm". 1, False, 1.0, "mm", 1.0 ) ) >>> sherlock.model.exportTraceModel(list_of_params_for_layers)