VCAcadRead


Version:

1.2

Description:

Loads an AutoCAD file into the current drawing world.

Declaration:

C/C++

extern "C" void WINAPI VCAcadRead(char* pName);

Delphi

VCAcadRead(pName: PAnsiChar); stdcall;

ActiveX/COM

Sub AcadRead(ByVal pName As String)

Parameters:

pName - path and filename for the file.

Notes:

VCAcadRead allows an AutoCAD file to be loaded and converted to a Visual CADD™ drawing in the current drawing session. VCAcadRead strips all 3D entity information from the drawing while VCAcadReadWith3D allows a complete 3D file to be interpreted. VCAcadRead is a specific load routine to work with AutoCAD files. An error will occur if attempting to load files other than *.DWG files. In situations where other vector drawing formats such *.VCD, *.GCD or *.DXF will also be used the routine VCLoadDrawing should be implemented which will load all these vector file types. When working with AutoCAD file types it is necessary to provide settings for certain conversion criteria. The criteria can be either set through code or as a result of user input to the application. The AutoCAD conversion criteria include base units, color translation, X-Ref conversion and font mapping. Visual CADD™ provides a dialog for a user to edit these settings for conversion operations. These settings may or may not correspond to those required by the application. In situations where the application needs to control these settings the calls VCGetAcadImportUnit, VCGetPreserveAcadColorNums and VCGetKeepAcadFontName can be used to set the desired values.

See Also:

VCAcadBlockRead, VCAcadReadWith3D, VCAcadWriteDWG, VCAcadWriteDXF, VCGetAcadImportUnit, VCLoadDrawing, VCAcadBlockRead3D, VCGetAcadImportUnit, VCGetKeepAcadFontName