CadAddLayer
Creates a new layer and returns its handle.
YuHandle CadAddLayer (
YuHandle hDwg,
const char* szName,
std::int32_t Color,
std::int32_t IdLineType,
std::int32_t LineWeight
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - szName (const char*)
- NUL-terminated UTF-8 string.
- Color (std::int32_t)
- Colour value (see the function description: ACI palette index 1-255, or a
COLORREF0x00BBGGRR). - IdLineType (std::int32_t)
- Integer value.
- LineWeight (std::int32_t)
- Integer value.
Return Value
The handle of the newly created layer, or 0 on failure.