yucad3d

CadExecute

Vecad's universal command runner.

void CadExecute ( YuHandle hDwg, void* hWin, std::int32_t cmdId );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
hWin (void*)
Host window handle (Win32 HWND, passed as an opaque pointer).
cmdId (std::int32_t)
Command identifier (CAD_CMD_* constant).

Return Value

None.

Remarks

Almost all functionality is reachable here by command id (CAD_CMD_*). Interactive draw/edit start a command on the view; dialogs open; navigation / measurement / print run inline. Falls back to the host's custom command (CadAddCommand) for ids >= CAD_CMD_CUSTOM.

See Also