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.

Developing Add-Ons

Anonymous
Not applicable
1. Add-Ons

I'm trying to write an add-on based on the examples. (API Development Kit 12.2156)
but the example (e.g. Element_Test) doesn't seems to work (in DEMO mode).
for example: ACAPI_Element_Create returns an error APIERR_REFUSEDCMD.
What am I doing wrong?

2. Add-On menu items are disabled.

The add-on menu items are disabled when a model is closed.
Is there a way to enable them?
Where can I find the full documentation of the the grc file?

Thanks
2 REPLIES 2
Ralph Wessel
Mentor
graffiti wrote:
ACAPI_Element_Create returns an error APIERR_REFUSEDCMD.What am I doing wrong?
Have you perhaps not called ACAPI_OpenUndoableSession first?
graffiti wrote:
The add-on menu items are disabled when a model is closed. Is there a way to enable them?
Not that I know of.
graffiti wrote:
Where can I find the full documentation of the the grc file?
Unfortunately this can't all be found in a single document. The bulk of it is in the Dialog Manager documentation. There is some quite important stuff under the section Required Resources in the main API documentation too.
Ralph Wessel BArch
Anonymous
Not applicable
Thanks a lot, Ralph! That was a million dollars answer! I spent 3 days puzzled my head about what's wrong with ACAPI_Element_Change function!
Learn and get certified!