Method not to change Handle Value

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

Method not to change Handle Value

Post by hayami » 05 Apr 2013, 11:43

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

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

Re: Method not to change Handle Value

Post by support » 05 Apr 2013, 14:51

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

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

Re: Method not to change Handle Value

Post by hayami » 08 Apr 2013, 06:57

Thanks for your cooperation.

R.Hayami

Post Reply