yucad3d

CadCmdStart

Starts an interactive command (CAD_CMD_*): the library runs the mouse loop, rubber-band preview and snapping until the command commits or is cancelled.

std::int32_t CadCmdStart ( YuHandle hDwg, std::int32_t cmdId );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
cmdId (std::int32_t)
Command identifier (CAD_CMD_* constant).

Return Value

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

See Also