LayerGetBoundingBoxΒΆ
LayerGetBoundingBox returns the bounding box of a diagram. The bounding box is a rectangle that encloses all diagram elements and drawing objects.
-
rvBox = LayerGetBoundingBox(hLayer)
-
rvBox = LayerGetBoundingBox(hLayer, nOption)
Return Value
rvBox is a vector with four elements in centimeters: [x, y, dx, dy]
.
Parameters
-
hLayer
Identifies the layer.
-
nOption
nOption is one of the following values:
Value | Description |
---|---|
1 | Layer and x-axis |
2 | Layer and y-axis |
3 | Layer and x- and y-axis |
4 (default) | Layer and x-axis, y-axis and drawing objects |
Example
* LayerGetBoundingBox(120)
* 10.2600 -27.8800 7.6200 6.2700
History
Version | Beschreibung |
---|---|
R2014 | Neuer Parameter nOption. |
See also
id-1660550