Page 1 of 1

Method not to change Handle Value

Posted: 05 Apr 2013, 11:43
by hayami
Hello.

I save it after I read DXF and edit it.
Is there the method of not to change a entitiy's handle Value?

Code: Select all

private
  FCadImage: TsgCadImage;
  FDNavigator: TsgDrawingNavigator;

//abbreviation

procedure LoadDxfFile(FileName: String);
begin
  FDNavigator.LoadFromFile(FileName);              // 'test.dxf' etc..
  FCadImage := TsgCADImage(FDNavigator.Picture.Graphic);
end;

//abbreviation

procedure SaveDxfFile(FileName: String);
var
  c2d: TsgCADtoDXF;
begin
  c2d := TsgCADtoDXF.Create(FCadImage);
  c2d.SaveToFile(FileName);           // save
  c2d.Free;
end;
Best wishes.
R.Hayami

Re: Method not to change Handle Value

Posted: 05 Apr 2013, 14:51
by support
Hello.
Handles of entities on imported drawing doesn't changed while working with the drawing. Entities will be saved with the same handles values they were imported. Handels of created entities meet AutoCAD standards.

Alexander.

Re: Method not to change Handle Value

Posted: 08 Apr 2013, 06:57
by hayami
Thanks for your cooperation.

R.Hayami