Page 1 of 1

Images disappear

Posted: 22 Oct 2018, 06:36
by alex7210
Hello

I'm using CAD .NET 11, gathter the spatial data and export to DXF file using CADtoDXF class.

When I load the DXF file in AutoCAD, there is no problem.

But I save it as dwg file, all the images in dxf are disconnected and disappear.

I don't know how to solve this problem.

Could you help me?

And I want to know if there is the way to export to dwg format in CAD .NET.

Thank you.

Re: Images disappear

Posted: 22 Oct 2018, 14:44
by support
Hello,

The raster images may get lost if they were added to a CAD drawing as IMAGE objects and the image files cannot be located at the file path specified in a corresponding imagedef object.

As for the export to DWG, it is supported starting from version 12.1 by using an additional dynamic link library sgcadexp.dll which comes with CAD .NET and can be found in the following folders:

c:\Users\USER_NAME\Documents\CAD .NET 12\bin\DWGExportLib\Win32\
c:\Users\USER_NAME\Documents\CAD .NET 12\bin\DWGExportLib\Win64\

To export a CADImage object to the DWG format, you need to copy the file sgcadexp.dll to the folder with CADImport.dll and call a static method CADtoDWG.SaveAsDWG. For example:

Code: Select all

public static void SaveCADImageAsDWG(CADImage cadImage, string dwgFilePath)
{
    CADImport.Export.CADtoDWG.SaveAsDWG(cadImage, dwgFilePath);
}
Mikhail