Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbSetViaShapePurpose

dbSetViaShapePurpose(
d_customViaId
tx_purpose
)
=> t / nil

Description

Sets the purposes of all shapes in the cdsVia to the specified purpose. The updated parameters include primaryShapePurpose, cutShapePurpose, and otherShapePurpose. To set all purposes to their original values (defined in the cdsViaDevice definition), use an empty string as the new purpose value.

Arguments

d_customViaId

The database ID of the custom cdsVia for which the layer purpose parameters are to be set.

tx_purpose

The new shape purpose. The purpose can be specified either by the purpose name or the purpose number.

Value Returned

t

The layer purpose parameter values for the cdsVia were successfully set.

nil

nil is returned if the layer purpose parameters were not set.

Examples

dbSetViaShapePurpose(viaId "power")
dbSetViaShapePurpose(viaId 256)

To reset layer purposes back to their original values, as specified in the cdsViaDevice definition, use:

dbSetViaShapePurpose(viaId " ")

The via parameter "cutWidth" is set to use the default value for the specified standard via.


Return to top
 ⠀
X