Prev Next

Import Resource Script

Enterprise Architect supports the import and export of Microsoft Windows Resource Scripts (as .rc files), which contain the Win32® dialog definitions (those with the stereotype «win32Dialog») for an application's graphical user interface. Dialog resources are imported and exported for a specific language, defaulting to the locale of the current computer system.

Access

Ribbon

Code > Import > File > Import Resource Script

Keyboard Shortcuts

F7 (synchronize element with code)

Import dialog resources from a .rc file

Option

Action

See also

Resource File

Click on the button and locate the .rc file to import the screen elements(s) from.

Resource ID

Either:

  • Leave the default value 'All' to import all screen elements from the file, or
  • Click on the drop-down arrow and select the screen ID of a specific dialog to import

Language

Click on the drop-down arrow and select the language version (such as English - United States) of the dialog(s) to import.

Import

Click on this button to import the screens from the resource file.

The progress of the import is reported in the field underneath the 'Language' field.

Export a dialog to a .rc file

Option

Action

See also

Screen ID

Defaults from the Win32UI ID Tagged Value of the selected Screen element.

(If the dialog does not have this ID, open the 'Win32UI' page of the element's 'Properties' dialog and provide a value for the ID tag.)

Resource File

Click on the button and locate the .rc file into which to export the screen element(s).

If the element was previously imported, this field defaults to the source file.

Language

Click on the drop-down arrow and select the language version (such as English - United States) of the exported dialog.

Export

Click on this button to export the screens from the resource file.

The progress of the export is reported in the field underneath the 'Language' field.

Notes

  • New dialogs are exported to an existing .rc file
  • In an export to an existing .rc file, no dialogs are ever deleted from the file, even when they are deleted from the model
  • In an import, no dialogs are deleted from the model even when omitted from the original .rc file