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




An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
A string value which represents the filename.
The load options.
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, _
   ByVal loadOptions As LoadOptions _
) As ImageX
'Usage
 
Dim imagXpress As ImagXpress
Dim filename As String
Dim loadOptions As LoadOptions
Dim value As ImageX
 
value = ImageX.CadFileOpen(imagXpress, filename, loadOptions)
public static ImageX CadFileOpen( 
   ImagXpress imagXpress,
   string filename,
   LoadOptions loadOptions
)
public: static ImageX* CadFileOpen( 
   ImagXpress* imagXpress,
   string* filename,
   LoadOptions* loadOptions
) 
public:
static ImageX^ CadFileOpen( 
   ImagXpress^ imagXpress,
   String^ filename,
   LoadOptions^ loadOptions
) 

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

Reference

ImageX Class
ImageX Members
Overload List

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback