yucad3d

CadAddHatch

Creates a new hatch and returns its handle.

YuHandle CadAddHatch ( YuHandle hDwg, const char* szFileName, const char* szPatName, double Scal, double Angle );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
szFileName (const char*)
NUL-terminated UTF-8 string.
szPatName (const char*)
NUL-terminated UTF-8 string.
Scal (double)
Scale factor.
Angle (double)
Angle in radians, counter-clockwise from the +X axis (the host angle unit can be changed with CAD_GL_ANGUNITS).

Return Value

The handle of the newly created hatch, or 0 on failure.

See Also