leComputeAreaDensity
leComputeAreaDensity(
w_windowId
l_lppSpec
[ ?depth x_depth ]
[ ?region l_region ]
)
=> l_result / nil
Description
Computes the total area and the density of shapes with specified layers within a region. If part of the shape is inside the region, only the area of the part that is inside the region is calculated.
Arguments
|
w_windowID
|
Window ID of the window used for computing area and density.
|
|
l_lppSpec
|
The list of layer-purpose pairs to be considered for area and density calculation. You can specify the layers in any of the following formats:
-
One layer:
list(list(list("Met1" "drawing"))) -
Multiple layers:
list(list(list("Met1" "drawing1")) list(list("Met2" "drawing")) list(list("Met3" "drawing1"))) -
Merge layers:
list(list(list("Met1" "drawing") list("M1" "draw")) -
Multiple merge layers:
list(list(list("Met1" "drawing") list("M1" "drawing")) list(list("Met2" "drawing") list("M2" "drawing")))
|
|
?depth x_depth
|
The depth of hierarchy to be used when calculating the area and density. Valid Values: any integer from 0 to 31. Defaults to 0.
|
|
?region l_region
|
The region point list for which the area and density of shapes needs to be calculated. If part of a shape is inside the region, then only the area of the part that is inside the region is calculated.
|
Value Returned
|
l_result
|
List of DPL. For each merged layer, DPL is (nil density densityValue area areaValue)
|
|
nil
|
The function was not successful.
|
Example
leComputeAreaDensity(hiGetCurrentWindow() list(list(list("Nwell" "drawing"))) ?depth 31 ?region list(-0.394:-0.125 1.629:-0.125 1.629:1.355 -0.394:1.355))
Return to top