VCMergeDrawing


Version:

1.2

Description:

Loads and merges the specified file into the current drawing.

Declaration:

 

C/C++

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

Delphi

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

ActiveX/COM

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

Parameters:

pName - the path and name of the file to be merged.

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:

Merging a drawing will load the new drawing into the drawing already active. If there are any named layer conflicts the first drawing will retain the layer names and the merged drawing will lose the layer name where the conflict exists. The same is true of loaded symbols. If there is a conflict between names, the previous drawing will retain the symbol definitions and the merged drawing will be forced to adopt the new symbols. This is the case for any conflicts: whichever drawing is first wins.

See Also:

VCLoadDrawing, VCMergeDrawingNoPaint