yucad3d

CadGetFirstEntity

CadGetEntityByPoint / CadGetEntityByCursor are screen-space picks that need the view transform — implemented in api_window.cpp (has the view).

YuHandle CadGetFirstEntity ( YuHandle hDwg );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.

Return Value

The handle of the entity, or 0 when the enumeration is exhausted.

See Also