CADCreate

  Functions >

CADCreate

Previous pageReturn to chapter overviewNext page

The CADCreate function creates a new CAD drawing object and loads it from the specified file.

 

Syntax

 

HANDLE CADCreate(

  HWND hWindow,

  LPCSTR lpFileName

);

 

 

Parameters

 

hWindow

Identifies the window that will get system messages during the file loading. Usually it is the main window of client application. If no

file is specified, hWindow can be NULL.

lpFileName

Points to a null-terminated string that specifies the DXF (*.dxf), DWG (*.dwg), HPGL (*.hgl; *.plt; *.hg; *.hpg; *.plo), SVG (*.svg)

or CGM (*.cgm) file name to be loaded. If this parameter is NULL, no file is loaded and the empty CAD drawing object is created.

 

Return Value

If the function succeeds, the return value is a handle of new CAD drawing object.

If the function fails, the return value is NULL. To get extended error information, call CADGetLastError.

 

 

See Also

CADClose


© 2003-2024 CADSoftTools

Go to CAD DLL