yucad3d

CadFileSaveMem

DXF to a memory buffer; returns the byte size (copies up to MaxSize).

std::uint32_t CadFileSaveMem ( YuHandle hDwg, void* hWin, void* pMem, std::uint32_t MaxSize );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
hWin (void*)
Host window handle (Win32 HWND, passed as an opaque pointer).
pMem (void*)
Pointer to the in-memory drawing (NUL-terminated DXF text, the same convention as CadFileOpenMem).
MaxSize (std::uint32_t)
Capacity of the caller-supplied array(s).

Return Value

The full byte size of the drawing (copies up to MaxSize bytes into pMem).

See Also