Author Topic: Import text list to new screen editor?  (Read 11585 times)

Offline 240glt

  • PLUS+1 Developer
  • ***
  • Posts: 35
  • Karma: +1/-0
Import text list to new screen editor?
« on: February 17, 2015, 09:46:02 AM »
I have a DP720 project, where I show fault codes from the system. There is 250 different fault codes. I have the text description for each code in a text file and as a spreadsheet. Does someone have a good idea of how to import them into guide in a simple way? I think I can use an array to translate the fault code to a index number for an text list. But how can I import a text list into guide? Without having to copy and paste every one of the 250 texts? Or is there a simpler way? :)

Offline oiltronic

  • PLUS+1 Guru
  • *****
  • Posts: 170
  • Karma: +15/-0
Re: Import text list to new screen editor?
« Reply #1 on: February 19, 2015, 12:35:14 AM »
In the old screen editor you just right-click on the "Texts" icon in the Screen Library tab, then import your text data as a *.csv file.  I don't know about the new vector-based editor.

If that doesn't work and you're the daring type, you could see if the text data is stored in a text file then write your own script (Perl, text editor macro, etc.) to add your text to it.

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Import text list to new screen editor?
« Reply #2 on: April 19, 2017, 05:46:01 PM »
Hi,
I have started programming DP700 this week.

Can someone tell me, how to export and import text, for translation and then import it again ?
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline FStelzer

  • PLUS+1 Expert
  • ****
  • Posts: 50
  • Karma: +8/-0
Re: Import text list to new screen editor?
« Reply #3 on: April 20, 2017, 09:54:30 AM »
Hello,

you have to open the Screen Editor, right click on "Library" (you find it on the right top in the Screen Editor) and then "Export Text Data".
You will get an .csv file with all texts in it. Change it and then Import the data. This also works with right click on "Library" and "Import Text Data".

In the past I get some troubles with the .csv file when i open the file in Excel and save it. It was not possible to Import it.
So it's better to make a copy from the exported file, change the text in the copy, afterwards open the exported .csv file with the Editor and paste the changes in the Editor file and save it.

Regards,
FStelzer

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Import text list to new screen editor?
« Reply #4 on: April 20, 2017, 11:13:03 AM »
Thanks! Yesterday I had only seen the "export library objects". So, I have to open my eyes......

Yes in old classic style editor I also had problems:
One way is to edit the csv file in the simple windows editor.

The second way is to use ultra edit. From Ultra Edit I copy text in excel, change it and copy back in Ultra Edit and then import in classic screen editor.
I have a documentation of that, but it is in german language.
If you want to have it, I could send it to you per private message. There are a lot of pictures. So probably you will understand it.
« Last Edit: April 20, 2017, 11:20:36 AM by Marbek_Elektronik »
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung