update_conductor_layer#
- Stackup.update_conductor_layer(project, cca_name, layer, layer_type='', material='', thickness=0, thickness_unit='', conductor_percent='', resin_material='')#
Update a conductor layer with given properties.
Available Since: 2021R2
- Parameters:
project (
str) – str: Name of the Sherlock project.cca_name (
str) – str: Name of the CCA.layer (
str) – str: Layer ID associated with the conductor layer.layer_type (
str) – str, optional: Layer type. The default is"". For example,"SIGNAL","POWER", or"SUBSTRATE".material (
str) – str, optional: Conductor material. The default is"".thickness (
float) – float, optional: Conductor layer thickness. The default is0.thickness_unit (
str) – str, optional: Units for the conductor layer thickness. The default is"".conductor_percent (
str) – str, optional: Conductor percentage. The default is"".resin_material (
str) – str, optional: Resin material. The default is"".
- Return type:
- Returns:
- :
intStatus code of the response. 0 for success.
Notes
Using the default value for a property causes no changes for that property.
Examples
>>> from ansys.sherlock.core import launcher >>> sherlock, install_dir = launcher.launch_and_connect(transport_mode="wnua") >>> 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" >>> )