Page 1 of 1

Cannot save changes to DXF file

Posted: 12 May 2006, 08:52
by jasonz_2003
Hi Sergey,

I used the Save to DXF file method of TsgDXFImage to save changes I have done to the Entities (move rotate etc) to a new DXF file, but found the changes were not saved. Only a copy of original DXF were saved. All the changes were displaied correctly though. I used the FImg->Converter->Loads method, so I suppose the entities were actually changed. Why were they not saved? Do I need to made change in the Structuer Treeview as well?

Jason

Posted: 12 May 2006, 18:17
by support
Hello Jason,

Code: Select all

<b>procedure</b> TsgDXFImage.SaveToFile(<b>const</b> FileName: string); 
is an old procedure. It is necessary for compatibility with previous versions of the library. It does not allow to save implemented changes.

It is necessary to use DXF Export VCL (available on: http://www.cadsofttools.com/download/dxfexportvcl.zip)for saving to a file. Methods how to save to a file can be found in the demo programs from CAD Import VCL package (available on: http://www.cadsofttools.com/download/cadimportvcl.zip).
<b>Important</b>: this method is based on import-export through Windows metafile. That is why complicated entities will be split to a sets of simple entities (lines etc.). Currently we work on direct export to overcome this restriction. I'll inform you when it will be available.

Sergey.

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

Posted: 12 May 2006, 18:50
by support
Hi Jason,

1. Open demo in the ..\cadimportvcl\Delphi\Demos\TextChange+Color2LineWeight\.. folder.
2. Select <b>Project > Options...</b> menu command.
3. Select tab <b>Directories/Conditionals</b>.
4. Enter SG_USEDXFEXPORT to <b>Conditional defines:</b> edit box.
5. Biuld application, open CAD file and select <b>Save As DXF</b> menu command.

Sergey.

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