Page 1 of 1

Handle changes in DXF save

Posted: 02 Apr 2014, 06:44
by hayami
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,

Re: Handle changes in DXF save

Posted: 02 Apr 2014, 07:09
by hayami
Sorry.
I had the same question as well before.
http://www.cadsofttools.com/forum/viewt ... dle#p11564

Thanks.

Re: Handle changes in DXF save

Posted: 02 Apr 2014, 13:50
by support
Hello.
Please specify Handles of which entities/objects different within created files. Which library version you use?

Alexander.

Re: Handle changes in DXF save

Posted: 07 Apr 2014, 05:25
by hayami
hello Alexander.

It was my mistake.
sorry.

use version is 9.1

thanks.