To help developers use Archicad’s standard features, Graphisoft makes available its cross-platform technology for resource description, compilation and dialog management.
The possible source image formats of an icon resource are PNG and SVG now. For further information, read how to compile icon resources.
UTF-8 encoded grc files are now supported. The files should contain the byte-order-mark (BOM); Visual Studio calls these files ‘UTF-8 with encoding’. All the example grc files were converted to UTF-8; to make them work with the resource compiler an additional flag has to be specified:
-q fromEncoding toEncoding
where fromEncoding is utf8
, and toEncoding is platform-dependent (see below). Note that you can still use your non-UTF8 files.
On Windows the following tool should be used:
- The ResConv.exe utility is the resource compiler for Windows. It compiles the .grc files into .rc2 windows resource files. You can find example on its use in the example projects. From DevKit 4.1 most of the resources compiled with this resource compiler will be native Windows resources (the only exceptions at the moment are those
'FILE'
resources which contain built-in library parts). To achieve this you’ll have to specify the'-t W'
option. - You can find detailed information on parametrization of Resource Compiler on Windows here.
- For better understanding, see a Windows example here.
the toEncoding parameter is the Windows code page (e.g.
1252
)the toEncoding parameter should be set to
utf8
On Macintosh the following tool should be used:
Each example project contains a compileGRCs.pl Perl script, which calls the command-line version of the ResConv tool. This script also shows how to specify the usual options for the compiler.
- You can find detailed information on parametrization of Resource Compiler on Macintosh here.
- For better understanding, see a Macintosh example here.
the toEncoding parameter is the Script Manager script code (e.g.
0
for Roman scripts)the toEncoding parameter should be set to
utf16
Please refer to the GRC format and Graphisoft Dialog Manager documents to get further details.