CadAddText2
Creates a new text entity — 2 and returns its handle.
YuHandle CadAddText2 (
YuHandle hDwg,
const char* szText,
double X,
double Y,
double Z,
std::int32_t Align,
double H,
double W,
double RotAngle,
double Oblique
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - szText (const char*)
- NUL-terminated UTF-8 string.
- X (double)
- World coordinate.
- Y (double)
- World coordinate.
- Z (double)
- World coordinate.
- Align (std::int32_t)
- Integer value.
- H (double)
- Height in world units.
- W (double)
- Width in world units.
- RotAngle (double)
- Angle in radians, counter-clockwise from the +X axis (the host angle unit can be changed with
CAD_GL_ANGUNITS). - Oblique (double)
- Numeric value (double precision).
Return Value
The handle of the newly created text entity, or 0 on failure.