yucad3d

CadAddCommand

Registers a host-defined command id runnable through CadCmdStart; the host drives it via the custom-command callbacks.

std::int32_t CadAddCommand ( YuHandle hDwg, std::int32_t Id, const char* szCmdName, const char* szAlias, void* hCurs, void* pFunc1, void* pFunc2 );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
Id (std::int32_t)
Numeric identifier.
szCmdName (const char*)
NUL-terminated UTF-8 string.
szAlias (const char*)
NUL-terminated UTF-8 string.
hCurs (void*)
Caller-supplied output pointer.
pFunc1 (void*)
Caller-supplied output pointer.
pFunc2 (void*)
Caller-supplied output pointer.

Return Value

Nonzero (TRUE) on success, 0 (FALSE) on failure.

See Also