SaveAsDWG() Failure
Moderators: SDS, support, admin
SaveAsDWG() Failure
Hello
I found a .dwg file that is not saved.
Could you please check why the method SaveAsDWG() returns false?
http://magzog.com/input.zip
Thank you.
I found a .dwg file that is not saved.
Could you please check why the method SaveAsDWG() returns false?
http://magzog.com/input.zip
Code: Select all
string filepath = @"../input.dwg";
var cadImage = CADImage.CreateImageByExtension(filepath);
cadImage.LoadFromFile(filepath);
if(CADImport.Export.CADtoDWG.SaveAsDWG(cadImage, "output.dwg"))
{
;
}
else
{
;
}
Re: SaveAsDWG() Failure
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: SaveAsDWG() Failure
Oh~ I missed the directory name.
This is the correct link.
http://magzog.com/caddotnet/input.zip
Thank you.
This is the correct link.
http://magzog.com/caddotnet/input.zip
Thank you.
Re: SaveAsDWG() Failure
Hello Sing,
Thank you for the file.
We have reproduced the problem. The method SaveAsDWG() returns false and doesn't create the output .dwg file, and the DXF export generates an invalid DXF file which gives the following error when opening it with DWG TrueView:
So apparently the problem is connected with Bad color index -8. I have forwarded your DWG file to CAD .NET development team for further investigation.
Mikhail
Thank you for the file.
We have reproduced the problem. The method SaveAsDWG() returns false and doesn't create the output .dwg file, and the DXF export generates an invalid DXF file which gives the following error when opening it with DWG TrueView:
Code: Select all
The following error was encountered while reading
in LINE starting at line 83332:
Bad color index -8
Invalid or incomplete DXF input -- drawing discarded.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: SaveAsDWG() Failure
Hello Mikhail
Thank you so much. I will also check if the person made it used some AutoCAD plugin.
After investigation please let me know. It would be useful for us.
Thank you again.
Thank you so much. I will also check if the person made it used some AutoCAD plugin.
After investigation please let me know. It would be useful for us.
Thank you again.
Re: SaveAsDWG() Failure
Hello Sing,
The problem is fixed in sgcadexp.dll which comes with the latest build of CAD .NET (14.1.0.49115). You can download the latest build at this page: https://cadsofttools.com/products/cad-net/download/.
Mikhail
The problem is fixed in sgcadexp.dll which comes with the latest build of CAD .NET (14.1.0.49115). You can download the latest build at this page: https://cadsofttools.com/products/cad-net/download/.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support