Error when opening HPGL files
Posted: 14 Nov 2006, 12:10
Hi,
I am using Cad Import.NET and whenever I try to open a HPGL file with the supplied viewer application I get the following error:
Unable to cast object of type 'CADImport.CADBlock' to type 'CADImport.CADTable'.
************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'CADImport.CADBlock' to type 'CADImport.CADTable'.
at HPGL2.HPGLConverter.Initialize(String fileName)
at CADImport.CADConverter..ctor(String FileName)
at HPGL2.HPGLImage.CreateConverter()
at CADImport.CADImage..ctor()
at HPGL2.HPGLImage..ctor()
at CADImportForm.MainForm.LoadFile(Boolean dlg)
at CADImportForm.MainForm.tlbTool_ButtonClick(Object sender, ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The exception is thrown when trying to instantiate a new HPGLImage() class with the default constructor!!!
Please, advise me on how to successfully display HPGL images.
Regards,
Nicolas Goell
I am using Cad Import.NET and whenever I try to open a HPGL file with the supplied viewer application I get the following error:
Unable to cast object of type 'CADImport.CADBlock' to type 'CADImport.CADTable'.
************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'CADImport.CADBlock' to type 'CADImport.CADTable'.
at HPGL2.HPGLConverter.Initialize(String fileName)
at CADImport.CADConverter..ctor(String FileName)
at HPGL2.HPGLImage.CreateConverter()
at CADImport.CADImage..ctor()
at HPGL2.HPGLImage..ctor()
at CADImportForm.MainForm.LoadFile(Boolean dlg)
at CADImportForm.MainForm.tlbTool_ButtonClick(Object sender, ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The exception is thrown when trying to instantiate a new HPGLImage() class with the default constructor!!!
Please, advise me on how to successfully display HPGL images.
Regards,
Nicolas Goell