Error when opening HPGL files

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
ngoell
Posts: 2
Joined: 14 Nov 2006, 12:04

Error when opening HPGL files

Post by ngoell » 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

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 14 Nov 2006, 13:56

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

Post Reply