I have a (big) problem with exporting to DXF. I've been testing some approach of using TsgCADtoDXF (in C++ Builder 2009), but some kinds of DXF's are not exported. Exporting to DXF is the last stage of my project and everything else work properly. I have a paintbox:
Code: Select all
TSGDrawingNavigator *FsgPaintBox;
__property TSGDrawingNavigator* sgPaintBox = {read=FsgPaintBox};
Code: Select all
TsgCADImage *vGlobalCADFile;
Code: Select all
TsgCADtoDXF * vExpCADfile;
if(sgPaintBox)
{
vExpCADfile = new TsgCADtoDXF((TsgCADImage *)sgPaintBox->Picture->Graphic);
try
{
vExpCADfile->SaveToFile(SaveDialog3->FileName);
ShowMessage(MSG20);
}
__finally
{
delete vExpCADfile;
}
}//if
Code: Select all
TsgCADtoDXF * vExpCADfile;
if(vGlobalCADFile)
{
vExpCADfile = new TsgCADtoDXF(vGlobalCADFile);
try
{
vExpCADfile->SaveToFile(SaveDialog3->FileName);
ShowMessage(MSG20);
}
__finally
{
delete vExpCADfile;
}
}//if
I've spent on this problem some time - even tried to write my own exporting function basing on TsgDXFExport - and the result is still unsatisfying to me.
I'm asking for help.
Best regards,
Mariusz Hyzorek