Articles

How to upgrade your TCAD drawing to new file format (unicode)?

You can write a procedure to upgrade it , it is automatic, the steps:

1.backup all of your files

2.Download the DesignAllwinEN.exe and Project source

3.Try open the old file in the DesignallwinEN.exe and to show it, if can be opened, then you can write code for upgrading;

4.Open the project source by Delphi 10.2 Tokoyo, place a Button in the MainForm

   write this code in the Button.Click(Sender:TObject) function:

   MyCAD1.ClearAll();

  MyCad1.ReadOldTCADFile:=true

   MyCAD1.LoadFromFile('OldFileName');

   MyCAD1.SaveToFile('NewFileName');

 You can write a loop to process your drawing by FindFirst,FindNext function.

 

5. Save and run it.