The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, gkmethy, Ed Brown, Mihály Palenik, Tibor Lorántfy, MOREH Tamas, Akos Somorjai

#269300
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?
Last edited by ReignBough on Wed Jul 12, 2017 10:57 am, edited 1 time in total.
#269313
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.