BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

GSDH and API10

Oleg
Expert
Just tried the API for AC10 and I was extremely surprised, that it seems the GRC compiler now does not compile 'GSDH' resource.
If I have correctly understood, instead of it was introduced 'DLGH'. I do not understand why it was impossible to keep 'GSDH' for compatibility.
It is now a lot of work and difficulties, especially at localization
May be I have missing something.

Well, then may be somebody knows any trick, how now possible to have single grc file compatible for 9 and 10 API ?
May be GRC compiler has some preprocessing features something like "if/endif" or like "define" ?
Or may be somebody know - will resources compiled by old GRC compiler from API 6.1 compatible with new DG module of API 10 ?
2 REPLIES 2
Andras Babos
Graphisoft Alumni
Graphisoft Alumni
Oleg wrote:
May be GRC compiler has some preprocessing features
something like "if/endif" or like "define" ?

Yes, GRC allows #defines like this for example:
 
#if defined (DOPALETTE) 
'GDLG'  32500  Palette | noCaption  0   0  300  200  "About"  { 
#else 
'GDLG'  32500  Modal | noCaption  0   0  300  200  "About"  { 
#endif 

Of course you need to supply the defines to ResConv like this:
-d DOPALETTE
Oleg wrote:
Or may be somebody know - will resources compiled by old GRC compiler from API 6.1 compatible with new DG module of API 10 ?

Nope, the two resource files are completely incompatible. Sorry.

Andras.
Oleg
Expert
Thank for the answer and the help. I tried #if, but I have not guessed to define it in the command line of ResConv.
It is not a perfect solution for the 'GSDH', but anyway mach better than nothing.
Thank again.
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!