CadAddWText2
Creates a new window-formatted text (WTEXT) entity — 2 and returns its handle.
YuHandle CadAddWText2 (
YuHandle hDwg,
const char* szText,
double X,
double Y,
double Z,
std::int32_t Align,
double H,
double RotAngle,
std::int32_t bItalic,
std::int32_t bUnderline,
std::int32_t bStrikeout
);
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.
- RotAngle (double)
- Angle in radians, counter-clockwise from the +X axis (the host angle unit can be changed with
CAD_GL_ANGUNITS). - bItalic (std::int32_t)
- Boolean flag: nonzero = true / enabled, 0 = false / disabled.
- bUnderline (std::int32_t)
- Boolean flag: nonzero = true / enabled, 0 = false / disabled.
- bStrikeout (std::int32_t)
- Boolean flag: nonzero = true / enabled, 0 = false / disabled.
Return Value
The handle of the newly created window-formatted text (WTEXT) entity, or 0 on failure.