6.2.1.12.1   Export...

Synopsis:
Export program code to a programming language or as a text file.
Shortcut:
Ctrl+Shift+O,X or Ctrl+Shift+O,Ctrl+Shift+X

See also: hdevelop -convert (command line switch).

Using this dialog, you can select an export format and write (parts of) the current program to a file in that format. The dialog is displayed in figure 6.5.

Figure 6.5: Export.

The button next to the export file name opens a file selection dialog to select a file name and an export format. The following formats are supported:

Format Syntax Extension More information

Text File HALCON/HDevelop .txt Plain text export
C HALCON/C .c section “Code Generation for C”
C++ HALCON/C++ .cpp section “Code Generation for C++”
Visual Basic .NET HALCON/.NET .vb section “Code Generation for Visual Basic .NET (HALCON/.NET)”
C# HALCON/.NET .cs section “Code Generation for C# (HALCON/.NET)”

The file name extension corresponding to the selected export format is appended to the specified file name.

Export Range:
The export range specifies which parts of the current program are to be exported. The following options are available:

The short description and chapter information of procedures are exported as comments. Arbitrary code can be embedded with special comment lines (see section “General Aspects of Code Generation”).

Procedure Options:
Defines the export behavior for procedures.

Window Export:
Specifies the export behavior of HALCON windows:

Encoding:
Specifies the encoding of exported programs. The following options are available:

For C/C++, the encoding must match the interface encoding used by the application. For C#, exporting to UTF-8 should always work fine.

Keep dialog open

Checking this box keeps the dialog open for subsequent exports.