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

GRC format documentation? Smoother add-on development method?

PhilipF
Participant

Hello, Im having a challenge developing an addon for ArchiCAD.

 

I have searched for hours after a sufficient documentation of the "GRC format" but failed.

 

When developing my addon I build the file in Visual Studio as the Getting started blogpost instructed. Then I open "Addon manager" and add my ".apx". My problem arises when I want to build my new changes in the code. Im getting "cannot open .apx for writing". The reason is ArchiCAD has loaded the .apx and is not writable.

 

The simplest solution I came up with was to close ArchiCAD, build in VS and start ArchiCAD, however this takes an awful amount of time. I also tried opening the addon manager and uncheck my addon and press OK but I have to close the current project in ArchiCAD. This worked however the next time I tried doing the same thing I was getting the same error in VS "cannot open .apx for writing".

 

Any tips on how to make this process smoother? Thanks in advance 

3 REPLIES 3
LChen
Graphisoft
Graphisoft

Hi,

There is a document in API kit (DialogManager.chm) for grc file definition. Also, I'd suggest you to refer Examples code (DG_Test) which shows you how to write .grc file and create UI.

For your problem of developing addon smoothly, Sorry I have no good idea, as .apx is loaded by Archicad when runnig, it's locked unless you quit Archicad.

HTH.

Where is the DialogManager.chm file located? I cannot find it in API Kit 27.

LChen
Graphisoft
Graphisoft

Hi,

It's in the folder of API Development Kit 27.3001\Documentation\MSDN\DialogManager. Please download the latest version of API27 Kit (build 3001) if you don't have it.

HTH.