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
Error when opening HPGL files
Moderators: SDS, support, admin
Dear Mr. Nicolas Goell,
Thank you for the question.
We had renewed <b>CADImport.NET</b> on November 8th, 2006. Multipage HPGL files support had been added and some bugs had been fixed. Please try your files with this version: http://www.cadsofttools.com/download/cadimportnet.zip
If the problem still remain please send us your files for testing on support@cadsofttools.com.
Sergey.
please post questions to the forum or write to support@cadsofttools.com
Thank you for the question.
We had renewed <b>CADImport.NET</b> on November 8th, 2006. Multipage HPGL files support had been added and some bugs had been fixed. Please try your files with this version: http://www.cadsofttools.com/download/cadimportnet.zip
If the problem still remain please send us your files for testing on support@cadsofttools.com.
Sergey.
please post questions to the forum or write to support@cadsofttools.com