CadAddRect
Axis-aligned rectangle (rotated by Angle°) as a closed 4-vertex polyline.
YuHandle CadAddRect (
YuHandle hDwg,
double X,
double Y,
double Z,
double Width,
double Height,
double Angle
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - X (double)
- World coordinate.
- Y (double)
- World coordinate.
- Z (double)
- World coordinate.
- Width (double)
- Width in world units.
- Height (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.
Remarks
Corner at (X,Y); Width along local +x, Height along local +y.