VCLoadDrawing


Version:

1.2

Description:

Loads a drawing and converts it if necessary.

Declaration:

 

C/C++

extern "C" void WINAPI VCLoadDrawing(short* iError, char* pName, short iFileType);

Delphi

procedure VCLoadDrawing(var iError: Smallint; pName: PAnsiChar; iFileType Smallint); stdcall;

ActiveX/COM

Sub LoadDrawing(ByVal pName As String, ByVal iFileType As Integer)

Parameters:

pName - the name and path of the file to be loaded
iFileType
- represents the type of drawing file that is to be loaded.
-1 - Determine By Extension
0 - FILE_VCD
3 - FILE_GCD
5 - FILE_DWG
6 - FILE_DXF

Notes:

Visual CADD™ will load all the for-mentioned file types. However, be aware that Visual CADD™ has limited 3D support and may not be able to convert all file information from AutoCAD drawings. Also note that if using the iFileType of -1, the extension is the sole classification for the file type to be converted. This can be a problem with pre-Generic CADD 6.0 drawings as these were *.DWG files but not the same *.DWG files as AutoCAD. This can be a problem and may cause the program to crash.

See Also:

VCACADReadWith3D, VCOpenVCS, VCOpenCMP