Accusoft.ImagXpress13.Net
CadFileOpen(ImagXpress,String) Method




An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
The filename.
Opens the CAD file for repeated renderings of differently selected layers and layouts.
Syntax
'Declaration
 
Public Overloads Shared Function CadFileOpen( _
   ByVal imagXpress As ImagXpress, _
   ByVal filename As String _
) As ImageX
'Usage
 
Dim imagXpress As ImagXpress
Dim filename As String
Dim value As ImageX
 
value = ImageX.CadFileOpen(imagXpress, filename)
public static ImageX CadFileOpen( 
   ImagXpress imagXpress,
   string filename
)
public: static ImageX* CadFileOpen( 
   ImagXpress* imagXpress,
   string* filename
) 
public:
static ImageX^ CadFileOpen( 
   ImagXpress^ imagXpress,
   String^ filename
) 

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
The filename.

Return Value

An ImageX object containing a representation of the CAD file.
Remarks

Typically, an application calls the FromFile(ImagXpress,String) 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) 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. 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 operations nor support of annotations for adding or viewing.

Note: Available in Professional edition.

See Also

Reference

ImageX Class
ImageX Members
Overload List

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback