lcDrwInsert Home

Loads a drawing's data from a file. Current drawing's database will not be cleared, so the loaded drawing will be merged with current.

 BOOL lcDrwInsert (
   HANDLE hDrw,
   LPCWSTR szFileName,
   int Overwrite,
   HANDLE hLcWnd
 );

Parameters
hDrw
  Handle to a drawing object.
szFileName
  The filename of another drawing. The drawing must have any of supported file format.
Overwrite
  Overwrite mode. Defines LiteCAD behaviour if copied block already exist in the drawing. Can be one of the following constants:

Value Meaning
LC_BLOCK_OVERWRITENO Do not overwrite exist block
LC_BLOCK_OVERWRITEYES Always overwrite exist block
LC_BLOCK_OVERWRITEDLG Display a dialog, where a user can choose an option.
hLcWnd
  Handle to a parent window for the "Overwrite block" dialog. Specify NULL if the LC_BLOCK_OVERWRITEDLG mode is not used.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  lcDrwLoadlcDrwAddBlockFile