String resource files¶
Each PythonPart can be assigned a file containing the string resources used for the ID’s from the <TextId> tag. By default the name of the file is xxx_xyz.xml like xxx_deu.xml and it must be located parallel to the xxx.pyp file. xyz will be replaced by the current country code, which depends on the currently used Allplan language.
However, it’s also possible to use another file, e.g. a common resource file for several PythonParts. It this case the file name and path must be defined in the pyp file of the PythonPart by the <LanguageFile> tag (File structure).
The file has a XML file structure like
In this resource file the string resources for the PythonPart can be defined. The text id used must start with 1001.
In addition to the local resource file of the PythonPart there is a global resource file with common strings. The name of the file is BuildingElement_language.xml and the location ..\etc\PythonPartsFramework\GeneralScripts\Stringtable. The existing, common string resources and ID’s, which have the format e_XXX, can be taken from the file.
If a file with the current country code is not available, the xxx_eng.xml file is used. Information about missing string resource files and string resources are displayed in the Allplan trace window.