techGetLPAttr
techGetLPAttr(
d_layerPurposeID
)
=> l_value / nil
Description
Returns the list of attributes for the specified layer-purpose pair in the current technology database. The attributes (display priority, visibility, selectability, if the layer is visible when dragged, and validity) are defined in the techLayerPurposePriorities and techDisplays subsections of the ASCII technology file associated with the layer-purpose pair. If the layer-purpose pair does not exist, this function returns nil.
For more information about the techLayerPurposePriorities subsection of the technology file, see techLayerPurposePriorities in Virtuoso Technology Data ASCII Files Reference. For more 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.
|
Value Returned
|
l_value
|
A list of layer attributes. 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.
-
g_visible indicates whether the layer-purpose pair is visible in the display device.
-
g_selectable indicates whether objects drawn with the layer-purpose pair are selectable.
-
g_contToChgLay indicates whether the layer-purpose pair contributes to a changed layer.
-
g_dragEnable indicates whether you can drag a shape created with the layer-purpose pair in the layout editor.
-
g_valid indicates whether the layer-purpose pair appears in the LSW.
|
|
nil
|
The technology database or layer-purpose pair does not exist.
|
Example
techGetLPAttr(lpID)
=> (4
(t)
(t)
(t)
(t)
(t)
)
Returns the attributes assigned to the layer-purpose pair identified by lpID.
Return to top