AutoCad Export with no Success

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
aby
Posts: 81
Joined: 21 May 2007, 13:02
Location: Turkey

AutoCad Export with no Success

Post by aby » 21 Mar 2008, 19:41

Hi,

I've imported a AutoCad dwg using CadImportVCL, and export to a dxf file like the following.

boost::shared_ptr<TsgDXFExport > Exp(new TsgDXFExport());
Form->PaintTo(Exp->Canvas->Handle, 0, 0);
Exp->EndDraw();
AnsiString ResFileName = AnsiString(Proje->Dir);
ResFileName += "KALIP.DXF";
Exp->SaveToFile(ResFileName);


I've imported the exported DXF file to AutoCad.

The results are unacceptable. [:(!]

aby
Posts: 81
Joined: 21 May 2007, 13:02
Location: Turkey

Post by aby » 21 Mar 2008, 19:46

Hi,

I've searched the pas files and found the CADtoDXF.pas.
I've exported the Image like the following.

boost::shared_ptr<TsgCADtoDXF > Exp(new TsgCADtoDXF( dynamic_cast<TsgDXFImage *> (DwgNavigator->Picture->Graphic) ));
AnsiString ResFileName = AnsiString(Proje->Dir);
ResFileName += "KALIP.DXF";
Exp->SaveToFile(ResFileName);


When I try to import to AutoCad from newly create DXFile its giving an Premature dxfin error.


What am I missing.

Thanks

Aby

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

Post by support » 23 Mar 2008, 03:34

Hello Aby,

It is necessary to use CADtoDXF module. You can find respective example in the Viewer demo:

Code: Select all

void __fastcall TForm1::SaveToDXF(AnsiString AFileName)
...
      vExpCADfile = new TsgCADtoDXF((TsgDXFImage *)vGr);
      try
      {
        vExpCADfile->SaveToFile(AFileName);
      }
      __finally
      {
        delete vExpCADfile;
      }
... 
Sergey.

Please post questions to the forum or write to support@cadsofttools.com

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

Post by support » 23 Mar 2008, 03:51

We have tested your KALIP.dwg. Problem of export to DXF file format is solved in beta version of CADtoDXF module. Please contact to our executive manager Evgeny Chuzhakin to info@cadsofttools.com accordingly the question of getting updates.

Sergey

Please post questions to the forum or write to support@cadsofttools.com

Post Reply