At a Glance

The import / export functions are accessible from the structural view and the functional view of the project browser:

  • The import function allows you to retrieve part or all of a project program for use in your project,

  • The export function allows you to copy part or all of your project program to a file. You can then retrieve this program for use in a new project using the import function.

Export Function

The export function generates a file that contains unprotected data and references to protected data. You must define the name of this file and its location (directory), the extension of which is determined by the export type (for example, XDB if you export a DFB type).

Partial Program Export With File Encryption Active

When file encryption option is enabled, the export of program elements with hardened encrypted DFB type (such as section, Program unit, task, variable, DFB type, ...), requires entering the file encryption password.

Import Function

When you perform a partial import, the software asks you if you want to save the current project. This allows you to have a pre-import version of the project.

If during an import an element with the same name is found in the project, a dialog box allows you to choose between a number of operating modes:

  • Keep: the element that is already present in the project is kept (the element with the same name is not imported),

  • Replace: the element that is already present in the project is replaced by the imported element with the same name,

  • Rename: you can change the name of the element to be imported in order to remove the conflict.

Which of these three operating modes you choose depends on the element you wish to import.

Following an import, you need to confirm the imported data (analysis and generation). In fact, import works like a manual input and is not confirmed automatically.

NOTE: When importing elements with leading digits or unicode characters, adjust project settings ( Tools > Project Settings... > Variables > Allow leading digits and Tools > Project Settings... > Variables > Character set) to avoid detected errors during import or at build.