Import DXF or WMF image

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Davidk
Posts: 3
Joined: 10 Jul 2009, 16:11

Import DXF or WMF image

Post by Davidk » 11 Aug 2009, 02:14

Hello,

I am using this code:
Dim cadImageFld As CADImage
cadImageFld = CADImage.CreateImageByExtension(imageFName)
cadImageFld.LoadFromFile(imageFName)

This will open a DXF or BMP with no problem. When I try to open a WMF file I get the error:
Object reference not set to an instance of the object.

I have also tried to open WMF files from your EditorDemo program and I get the same results.

Can you tell me how to open WMF files?

Best regards,
David K.

Evgeny Chuzhakin
Posts: 12
Joined: 14 Nov 2008, 09:45

Re: Import DXF or WMF image

Post by Evgeny Chuzhakin » 17 Aug 2009, 12:17

Hi David,

Thank you for the post.

The problem is fixed in the latest CAD Import .NET.
Please download new 7.2. version:
http://www.cadsofttools.com/download/cadimportnet.zip
Kind regards,
Evgeny

Post Reply