get_layer_count#

Stackup.get_layer_count(project: str, cca_name: str) int#

Get the number of CCA layers in a stackup.

Available Since: 2021R2

Parameters:
  • project (str) – Name of the Sherlock project.

  • cca_name (str) – Name of the CCA.

Returns:

The number of layers of the CCA in the project.

Return type:

int

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="Test",
    cca_name="Card",
)
>>> conductor_layer_count = sherlock.stackup.get_layer_count(
>>>    project="Test",
>>>    cca_name="Card")
>>> print(f"{conductor_layer_count}")