Accusoft.ImagXpress12.Net
CadFileOpen(ImagXpress,String,LoadOptions) Method
See Also  Send Feedback
Accusoft.ImagXpressSdk Namespace > ImageX Class > CadFileOpen Method : CadFileOpen(ImagXpress,String,LoadOptions) Method




imagXpress
An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
filename
A string value which represents the filename.
loadOptions
The load options.

Glossary Item Box

Opens the CAD file for repeated renderings of differently selected layers and layouts.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

imagXpress
An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
filename
A string value which represents the filename.
loadOptions
The load options.

Return Value

An ImageX object containing a representation of the CAD file.

Remarks

Typically, an application calls the FromFile(ImagXpress,String,LoadOptions) method to open a file but CAD files have many different perspective views depending on the selectiom of layouts and layers.

While FromFile(ImagXpress,String,LoadOptions) works with CAD files, it is very inefficient because subsequent requests must rebuild internal data tables on each evocation. This method keeps the internal tables and reference objects available for subsequent viewing by CadFileView(LoadOptions). Without any CAD loadoptions selected, the default layout and layers are rendered at the default paper size and resolution.

To terminate the viewing and remove the tables, call the CadFileClose method.

The ImageX object implements the IDisposable interface and the application is required to call the Dispose method when the application is done with ImageX object, otherwise memory may leak.

Note: This method does not support asynchronous operaions nor support of annotations for adding or viewing.

Note: Available in Professional edition.

See Also

©2013. Accusoft Corporation. All Rights Reserved.