Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 960 Bytes

File metadata and controls

44 lines (35 loc) · 960 Bytes

GetRRDiam

Description

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)

Parameters

Name Type Description
h HANDLE Handle to object.
xDiam REAL X diameter of rounded corner.
yDiam REAL Y diameter of rounded corner.

Examples

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)))

Version

Availability: from All Versions

Category