techOrderLPPriorityInContext
techOrderLPPriorityInContext(tx_techfileLibNamel_orderLpps) => t / nil
Description
Defines the relative priority for a dynamic set of layer-purpose pairs (LPPs) to be drawn on the canvas. The larger the number, the higher the priority and the lower the LPP is in the list. The LPP with the highest priority is drawn on top of all other LPPs.
This function is most useful when multiple technology databases are arranged in a technology graph. The LPPs specified are expected to exist in the graph rooted at the specified technology database. The function can be run on any variant of the process stack. It silently ignores any layers that are not present. Technology files on disk are not changed.
Arguments
|
An ordered list of layer-purpose pairs to be drawn on the canvas. The list has the following syntax: |
|
Value Returned
Example
Assume that the total LPPs in the effective technology database of topTech is 250 and that these LPPs are at the following positions:
The function is called as follows:
techOrderLPPriorityInContext("topTech" list( list("Metal1" "drawing" 1)
list("Metal2" "drawing" 2)
list("Metal3" "drawing" 3)
)
)
The positions are updated as follows:
-
"Metal3" "drawing"is at the last position. -
"Metal2" "drawing"is at the second position from below. -
"Metal1" "drawing"is at the third position from below.
Return to top