Product : Converter, Version : 4.0.5.1024, ArticleID : 41023279

HowTo : Save/Open DWG files.

Article41023279
TypeHowTo
ProductConverter
Version4.0.5.1024
Date Added10/27/2003
Submitted bySheena Konikkara
Keywords

Subject

Save/Open DWG files.

Summary

Try to save the drawing as DWG using the saveas method ( for ex: mobjDoc.SaveAs("test1.dwg", VdConstFileVer.VdCadVer2000))

You can see the dwg is not getting saved.
Similarly try to open an existing drawing. You will get the file error as VD_ERR_FILE_UNSUPPORTEDFILETYPE

Solution

In version 4.0.5.1024 and next releases a new DLL file with the name vdxfiles.dll must be in the same folder as vdpro.ocx, vdstd.ocx, or vdview.ocx.

This file is necessary for the VectorDraw component to open and save DWG and DXF files. This dll do not need register only to be in the same folder as the registered VDraw ocx.

The vdxfiles.dll must also be redistributed with your application. See also Redistribute Files version 4.0.5.1024 and up.