update_laminate_layer#
- Stackup.update_laminate_layer(project, cca_name, layer, manufacturer='', grade='', material='', thickness=0, thickness_unit='', construction_style='', glass_construction=None, fiber_material='', conductor_material='', conductor_percent='')#
Update a laminate layer with given properties.
Available Since: 2021R1
- Parameters:
project (
str) – Name of the Sherlock project.cca_name (
str) – Name of the CCA.layer (
str) – Layer ID associated with the laminate layer.manufacturer (
str) – Manufacturer of the material for the laminate layer. The default is"". To update the material, themanufacturer,grade, andmaterialparameters must be specified. When themanufactureris specified, there are checks to ensure that the corresponding parameters are provided.grade (
str) – Material grade. The default is"".material (
str) – Material name. The default is"".thickness (
float) – Laminate thickness. The default is0.thickness_unit (
str) – Units for the laminate thickness. The default is"".construction_style (
str) – Construction style. The default is"".glass_construction – List representing a glass construction. This list consists of objects with these properties:
- 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_laminate_layer( >>> "Test", >>> "Card", >>> "2", >>> "Generic", >>> "FR-4", >>> "Generic FR-4", >>> 0.015, >>> "in", >>> "106", >>> [ >>> ("106", 68.0, 0.015, "in") >>> ], >>> "E-GLASS", >>> "COPPER", >>> "0.0" >>> )