Procedure GetRRDiam returns the horizontal and vertical diameters of the rounded corners of a rounded rectangle object.
PROCEDURE GetRRDiam(
h : HANDLE;
VAR xDiam : REAL;
VAR yDiam : REAL);def vs.GetRRDiam(h):
return (xDiam, yDiam)| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
| xDiam | REAL | X diameter of rounded corner. |
| yDiam | REAL | Y diameter of rounded corner. |
GetRRDiam(h, 1.0, 2.0);import vs
# Procedure GetRRDiam returns the horizontal and vertical diameters of the
# rounded corners of a rounded rectangle object.
h = vs.FSActLayer() # handle to the first selected object on the active layer
xDiam, yDiam = vs.GetRRDiam(h)
vs.Message('GetRRDiam returned: ' + str((xDiam, yDiam)))Availability: from All Versions