Accusoft.ImagXpressSdk Namespace > ImageX Class > CadFileOpen Method : CadFileOpen(ImagXpress,String) Method |
'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 )
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.