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

Add-on suddenly stops working

Anonymous
Not applicable
I've been working on an Add-on for AC9. Going fine, starting to get the hang of the ACAPI (and C++ 😉 ). Suddenly, ArchiCAD is telling me that the Add-on cannot be loaded. Checking in the Add-on manager, I see:

The file is either not an Add-On or an outdated one that cannot be used with this ArchiCAD version.

I haven't touched the resource files since it last worked, I have all of the required functions in place, and it compiles without error. The AddOnAdmin tool doesn't tell me anything useful, it just won't authenticate it.

I've had this happen before while I was getting started. I ditched that Add-On to get around it. That's not a good solution this time....
15 REPLIES 15
stefan
Advisor
I've had this happening with my first (and only) add-on and it was a combination of not using the correct MDID and not including some defines into the resource files.

However, with the 6.1 SDK I can compile an Appwizard add-on without problems, so the starting point is at least a fully valid plugin.
--- stefan boeykens --- bim-expert-architect-engineer-musician ---
Archicad28/Revit2024/Rhino8/Solibri/Zoom
MBP2023:14"M2MAX/Sequoia+Win11
Archicad-user since 1998
my Archicad Book
Anonymous
Not applicable
Right. I got the same. The wizard worked fine, then I did something it didn't like.

It sounds reasonable enough that it could be an include file problem. I've been trying to feel my way around what is and isn't required, and where the required things should be #included.

Karl, I found in VS a wizard for creating makefile projects, but the description seems to indicate that you start with a makefile based project and create a VS project from it- not what you described. I can't seem to find an option for creating the makefile from an existing project.
Anonymous
Not applicable
I know this is an old thread now, but it seems the best place to talk about this...


I think in my original problem I had managed to hose a resource file somehow. So, I got around that but now I've got a similar problem with a new twist.

In the add-on management tool, my tool shows up exactly the way you said an 8.0 add-on does. The filename is grey and the only line in the verification says "DevKit Version: Undefined (Undefined release)". However, on my computer, the add-on works. On another systems, it also works. ArchiCAD loads the add-on with no complaints. On at least two other systems, however, the add-on will not load, and the add-on management tool in ArchiCAD gives the error message I mentioned in the original problem- that the add-on is outdated or for the wrong version.

I guess I'll try repointing to my ArchiCAD API and recompile, but I'm very puzzled at this point. Can it have anything to do with the presence or absence of external DLLs that the add-on makes use of?
Andras Babos
Graphisoft Alumni
Graphisoft Alumni
What do you exactly mean by
Ramblin wrote:
presence or absence of external DLLs that the add-on makes use of?
Anonymous
Not applicable
So, to answer my own question....the problem was caused by me. I didn't include Oracle's OO4O dlls with the add-on. For some reason, ArchiCAD shows the error message mentioned "...outdated add-on..." and the Add-On management tool refuses to show add-on details.

I removed and then re-installed OO4O to check. When I removed the component, I got the errors; when I re-installed, it worked fine again.

So, package everything you need with the add-on or it will tell you the add-on is outdated.

I'll try to post this just once.
Anonymous
Not applicable
Hi

I have a similar Problem with my Addon.

My Addon works without any Problem on my Machine
Running ArchiCAD 9 Build 2172 German

On an other Machine the Addon was not accepted by ArchiCAD
(outdated or incompatible Addon)

A former Version of this Addon works, but i miss the point when it starts making trouble because on my Machine everything runs well

I guess it has someting to do with the resources in the Addon Admintool
I check the working and the non Working addon and both are bringing up some Code 4 Errors in the GSDG branch, but why it works on the old Version, on my Machine with also the new Version and doesn't work on an other Machine.

So i'am still on this but maybe someone here has some suggestions

regards
Christopher

Thanks to Graphisoft Ungary the problem was solved
I use a Oracle Library in my Addon so that can only works on a machine with that DLL installed. I now will change that to a static linked library.

regards
Christopher