techSetLPAttr
techSetLPAttr(
d_layerPurposeID
l_layerAttributes
)
=> t / nil
Description
Updates layer attributes for the specified layer-purpose pair in the current technology database. The layer attributes are specified as a list and include the display priority, visibility, selectability, if the layer is visible when dragged, and validity. ASCII technology file location: techDisplays and techLayerPurposePriorities subsections of the layerDefinitions section.
For information about the techLayerPurposePriorities subsection of the technology file, see techLayerPurposePriorities in Virtuoso Technology Data ASCII Files Reference. For information about the techDisplays subsection of the technology file, see techDisplays in Virtuoso Technology Data ASCII Files Reference.
Arguments
|
d_layerPurposeID
|
The database identifier of the layer-purpose pair.
|
|
l_layerAttributes
|
A list of layer attribute values. The list has the following syntax:
list ( x_priority [ g_visible ] [ g_selectable ] [ g_contToChgLay ] [ g_dragEnable ] [ g_valid ] )
where,
-
x_priority is the display priority assigned to the layer-purpose pair. Layer-purpose pairs with higher priorities are displayed on top of layer-purpose pairs with lower priorities.
Valid values: An integer between 0 and one less than the total number of currently defined layer-purpose pairs
-
g_visible indicates whether the layer-purpose pair is visible in the display device defined for the display packet associated with this layer-purpose pair.
Valid values: t, nil -
g_selectable indicates whether objects drawn with the layer-purpose pair are selectable.
Valid values: t, nil -
g_contToChgLay indicates whether the layer-purpose pair contributes to a changed layer.
Valid values: t, nil -
g_dragEnable indicates whether you can drag a shape created with the layer-purpose pair with the Virtuoso® Layout Suite L commands (for example, Move and Copy).
Valid values: t, nil -
g_valid indicates whether the layer-purpose pair is listed in the layer selection window.
Valid values: t, nil
|
Value Returned
|
t
|
The attributes were successfully updated for the layer-purpose pair.
|
|
nil
|
The technology database or layer-purpose pair does not exist.
|
Example
techSetLPAttr(lpID list( 4 t t t t t))
=> t
Sets attributes for the layer-purpose pair identified by lpID in the current technology database.
Return to top