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.

[SOLVED] APIDb_NewDatabaseID returns APIERR_REFUSEDCMD

ReignBough
Enthusiast
As the title says. This appears on 6005. When I ran my add-on on 3012, it is working fine.

The code is just the same as the one on the documentation.

I also tried the sample Database_Control, but it works on both 3012 and 6005. What make it return APIERR_REFUSEDCMD?
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
1 REPLY 1
ReignBough
Enthusiast
Found it.

It was in a function that is between a undo-able. (Actually, it's in a function (0) that is called by a function (1) that is called by a function (2) that is called by a function (3) that is inside undo-able).

But this set-up is okay with 3012.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Learn and get certified!