yucad3d

CadPrnRectAdd

Creates a new named print region and returns its handle.

std::int32_t CadPrnRectAdd ( YuHandle hDwg, const char* szName, double Xcen, double Ycen, double W, double H, double Angle );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
szName (const char*)
NUL-terminated UTF-8 string.
Xcen (double)
X coordinate of the rectangle / region centre.
Ycen (double)
Y coordinate of the rectangle / region centre.
W (double)
Width in world units.
H (double)
Height in world units.
Angle (double)
Angle in radians, counter-clockwise from the +X axis (the host angle unit can be changed with CAD_GL_ANGUNITS).

Return Value

The handle of the newly created named print region, or 0 on failure.

See Also