list_layers#
- Layer.list_layers(project, cca_name) list #
List all layers as seen in the Layer Viewer for a specific project CCA.
- Parameters:
project (str) – Name of the Sherlock project.
cca_name (str) – Name of the CCA.
- Returns:
layer_infos – The layers as seen in the Layer Viewer for the given project CCA. Each dictionary should contain:
”layer_folder”: str, name of layer_folder enum.
”layers”: list, list of names of layers under this folder
- Return type:
list[dict[str, list]]
Example
>>> from ansys.sherlock.core.launcher import launch_sherlock >>> sherlock = launch_sherlock() >>> sherlock.project.import_odb_archive( "ODB++ Tutorial.tgz", True, True, True, True, project="Tutorial Project", cca_name="Card" ) >>> sherlock.layer.list_layers( project="Tutorial Project", cca_name="Card" )