VCAcadBlockRead


Version:

1.2

Description:

Loads a file as an AutoCAD block.

Declaration:

 

C/C++

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

Delphi

procedure VCAcadBlockRead(pName: PAnsiChar); stdcall;

ActiveX/COM

Sub AcadBlockRead(ByVal pName As String)

Parameters:

pName - path and filename for the file.

Notes:

The routine loads an AutoCAD file as a block, allowing Visual CADD™ to treat the file as a native symbol. Symbols act as a collection of entities that can be inserted repeatedly in a drawing. The symbols can be inserted at different locations with different rotations and scales while maintaining a unique identity separate from the objects composing the definition. 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:

VCAcadRead, VCAcadReadWith3D, VCAcadWriteDWG, VCAcadWriteDXF, VCGetAcadImportUnit, VCGetKeepAcadFontName