CadPrnRectPut
Sets the value of the named print region.
std::int32_t CadPrnRectPut (
YuHandle hDwg,
std::int32_t iRect,
const char* szName,
double Xcen,
double Ycen,
double W,
double H,
double Angle
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - iRect (std::int32_t)
- Zero-based index.
- 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
Nonzero (TRUE) on success, 0 (FALSE) on failure.