| The CAD Viewer can be called by
application software as a window for displaying and printing CAD
files. The procedure is simple, and can be used to display a single
CAD file or multiple CAD files. In each case the <System
Execute> command appropriate to the particular programming
language that you are using, is used to initiate the Viewer.
In C/C++ use the Windows 'CreateProcess' function.
In an ArcView Script use the Avenue
'system.execute' function.
In Visual Basic use the 'Shell' function.
The name of the CAD file to display is passed as a
parameter. A small set of other switches allow you to modify
the CAD Viewer operation. These options are listed in the CAD
Viewer online help.
A very simple example written in Visual Basic along with the
source code is included in the above download. (You must have
the CAD Viewer software installed on your system to use the 'Launch
CAD Viewer' example. Download
CAD Viewer 4.5) |