cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum
GDL coding questions, Python and add-on development using the API Dev Kit.

[SOLVED] APIDb_NewDatabaseID returns APIERR_REFUSEDCMD

ReignBough
Booster
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 24 INT 4018 FULL (from AC18)
Windows 10 Pro, Intel Core i7-4790 CPU @ 3.60GHz, 32.0GB RAM, 64-bit OS
1 REPLY 1

ReignBough
Booster
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 24 INT 4018 FULL (from AC18)
Windows 10 Pro, Intel Core i7-4790 CPU @ 3.60GHz, 32.0GB RAM, 64-bit OS

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!