update_conductor_layer#
- Stackup.update_conductor_layer(project: str, cca_name: str, layer: str, layer_type: str = '', material: str = '', thickness: float = 0, thickness_unit: str = '', conductor_percent: str = '', resin_material: str = '') int #
Update a conductor layer with given properties.
Available Since: 2021R2
- Parameters:
project (str) – Name of the Sherlock project.
cca_name (str) – Name of the CCA.
layer (str) – Layer ID associated with the conductor layer.
layer_type (str, optional) – Layer type. The default is
""
. For example,"SIGNAL"
,"POWER"
, or"SUBSTRATE"
.material (str, optional) – Conductor material. The default is
""
.thickness (float, optional) – Conductor layer thickness. The default is
0
.thickness_unit (str, optional) – Units for the conductor layer thickness. The default is
""
.conductor_percent (str, optional) – Conductor percentage. The default is
""
.resin_material (str, optional) – Resin material. The default is
""
.
Note
Using the default value for a property causes no changes for that property.
- Returns:
Status code of the response. 0 for success.
- 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", ) >>> sherlock.stackup.update_conductor_layer( "Test", "Card", "3", "POWER", "COPPER", 1.0, "oz", "94.2", "Generic FR-4 Generic FR-4" )