Archicad C++ API
About Archicad add-on development using the C++ API.

GRC scripting language

Emkave
Booster

Good day everyone. I need a help with understanding the GRC nature in order to properly define modal dialogs and other appereances.
I wonder if there is a documentation like cppreference but for GRC so I could understand this scripting language better?

I am trying to define the modal dialog, however, I get stucked with some errors sometimes when trying to add styles or else.

For example:
Here I made a wrote a simple grc for this modal dialogue...

Emkave_0-1721739094376.png

How can I get rid of that question mark thing?

ChatGPT gave me this solution:

'GDLG' 32525 Modal 10 10 300 200 "Modal" {
Style NoResizing, NoHelpButton // Add this line
/* [ 1] */ Button 130 160 30 30 LargePlain "OK"
}

However, this solution seems not being properly built when I press "Build" button to build the final project in Visual Studio.
Now I am completely lost how the syntax is organized in GRC. I need help please.


Thank you in advance!

 

 

Operating system used: Windows 10

 
 

 

 

1 REPLY 1
LChen
Graphisoft
Graphisoft

Hi, I'd suggest you to check the help file (DialogManager.chm) which you can find in API kit. Also, there is a sample code (DG_Test) in API Examples code which shows you how to create UI in your addon.

HTH.

Setup info provided by author