list_layers#

Layer.list_layers(project, cca_name)#

List all layers as seen in the Layer Viewer for a specific project CCA.

Parameters:
projectstr

Name of the Sherlock project.

cca_name: str

Name of the CCA.

Returns:
:
layer_infos: list[dict[str, list]]

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

Examples

>>> 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"
>>> )