GuthCAD home page Products Downloads Purchase Support
Jump To:
guthrie CAD Viewer 4.5 

launch

Calling the CAD Viewer from your own application

Download Launch CAD Viewer Example
(10K - updated 1 Feb 2000)

.Download CAD Viewer Download CAD Viewer 4.5
  Product Info
Download
Screenshots
Testimonials
Support
Pricing
Purchase
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)

On the first call the CAD Viewer window is opened and loads the selected drawing.  The area to zoom on can be specified by the calling application. Subsequent calls cause drawings to be loaded in turn into the open CAD Viewer window.  The user can browse through the set of loaded drawings and perform all the normal functions of the CAD Viewer such as Zoom, Pan, Print, Inquire etc.

*NOTE If you intend to use the CAD Viewer as part of a commercial application or as an application for use in a commercial or non-commercial organization or environment then you must purchase a Redistribution License equivalent to the total number of distributed copies of the CAD Viewer.

Home | Contact Us | Company Info | Privacy