Version: |
1.2 |
Description: |
Saves an AutoCAD DWG file from the current drawing to the specified filename. |
Declaration: |
|
C/C++ |
extern "C" void WINAPI VCAcadWriteDWG(char* pN); |
Delphi |
procedure VCAcadWriteDWG(pN: PAnsiChar); stdcall; |
ActiveX/COM |
Sub AcadWriteDWG(ByVal pN As String) |
Parameters: |
pN - path and filename for the file. |
Notes: |
VCAcadWriteDWG converts the current drawing to DWG format and writes to the specified file and location. VCAcadWriteDWG is a specific load routine to work with AutoCAD files. An error will occur if attempting to save files other than *.DWG files. In situations where other vector drawing formats such *.VCD, *.GCD or *.DXF will be used the routine VCSaveDrawing should be implemented which will save 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: |