Handle changes in DXF save

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

Moderators: SDS, support, admin

Post Reply
hayami
Posts: 18
Joined: 23 Jan 2013, 04:53

Handle changes in DXF save

Post by hayami » 02 Apr 2014, 06:44

Hello.
I tried the following code:

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
var
	wCadImage: TsgCADdxfImage;
	 c2d: TsgCADtoDXF;
	wDir, S: String;
begin
	GetDir(0, wDir);
	S := IncludeTrailingPathDelimiter(wDir) + 'test.dxf';


	wCadImage := TsgCADdxfImage.Create;
	wCadImage.LoadFromFile(S);

	S := IncludeTrailingPathDelimiter(wDir) + 'test_af1.dxf';
	try
		c2d := TsgCADtoDXF.Create(wCadImage);
		c2d.SaveToFile(S);
	 finally
 		if Assigned(c2d) then
			c2d.Free;
	end;
	wCadImage.Free;

	wCadImage := TsgCADdxfImage.Create;
	wCadImage.LoadFromFile(S);

	S := IncludeTrailingPathDelimiter(wDir) + 'test_af2.dxf';
	try
		c2d := TsgCADtoDXF.Create(wCadImage);
		c2d.SaveToFile(S);
	finally
		if Assigned(c2d) then
			c2d.Free;
	end;
	wCadImage.Free;
end;
Handle different "test_af1.dxf" and "test_af2.dxf".
Correct?

I want to save the handle unchanged.

thanks,

hayami
Posts: 18
Joined: 23 Jan 2013, 04:53

Re: Handle changes in DXF save

Post by hayami » 02 Apr 2014, 07:09

Sorry.
I had the same question as well before.
http://www.cadsofttools.com/forum/viewt ... dle#p11564

Thanks.

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

Re: Handle changes in DXF save

Post by support » 02 Apr 2014, 13:50

Hello.
Please specify Handles of which entities/objects different within created files. Which library version you use?

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

hayami
Posts: 18
Joined: 23 Jan 2013, 04:53

Re: Handle changes in DXF save

Post by hayami » 07 Apr 2014, 05:25

hello Alexander.

It was my mistake.
sorry.

use version is 9.1

thanks.

Post Reply