The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

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

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

By chrisgilmer
#298383
Not sure if this is really two separate issues or one question with supporting clues. If I need to bust it up into two questions, let me know.

I can successfully build my menu add-on. I have redirected my pointer for 'Use designated Add-Ons folder:' to a network location. The .apx file is in the correct network location to automatically load when I start ArchiCAD. All menu functionality works as expected. When I set a coworkers 'Use designated Add-Ons folder:' pointer to the same network location, he is not able to load the menu. Selecting the Add-On from the 'AVAILABLE ADD-ONS' list in the Add-On Manager shows the correct file from the right location but displays a message of 'The file is an outdated Add-On that cannot be used with this ArchiCAD version.' [see attached] We are running the same build of ArchiCAD and loading the same .apx Add-On file, only I can do this successfully and he cannot.

When I look at the database in the ArchiCAD AddOnAdmin tool, my .xml file is displayed in red text. [see attached] The official documentation on this tool shows the .xml file in green. When I switch to the 'Check' tab and 'Load' the .apx file from the network location, the analysis shows 'DevKit Version: Undefined (Undefined release)'. [see attached] In VS, my 'Solution Configurations' is set to 'Debug' and my 'Solution Platforms' is set to 'x64'. [see attached]

Am I missing a step somewhere to be able to register this first add-on for network use? Am I missing a step somewhere on how I build the .apx file? Would taking my developer / add-on credentials out of the Fix.grc file and putting them in a header file make this more portable? It appears that the .grc file is included with the build.

Thanks for the insight.
Attachments
Add-On undefined.png
User avatar
By Tibor Lorántfy
#298395
Hi Chris,

Does your Add-On have any external DLL dependency?
In Windows platform ARCHICAD tries to load the DLL dependencies of the Add-Ons from the folder where ARCHICAD.exe can be found.
So if your Add-On requires a DLL and you copied that DLL next to your ARCHICAD but your coworker didn't, then it could be the reason.

I suggest you to build your Add-On using Release configuration if you publish your Add-On. So please switch Debug to Release and try it again.

Regards,
Tibor
By chrisgilmer
#298409
Hey Tibor,

There is no external DLL dependency. All add-on dependency is contained within the build of the .cpp and the associated header and .grc files.

Good call on emphasizing to build using the Release configuration. We did try that yesterday and it did not make a difference.

I should also add that I have successfully made edits to a couple of other coworkers 'Use designated Add-Ons folder:' pointer and they were able to find my add-on at the preferred network location. I intentionally have everyone in the studio looking at a single network copy of my tools and it either works for all or for none. This helps direct attention to problems either with my code or individual problems that usually tend to be more machine config related. More often than not, a user will approach with "Hey, your stuff is not working" when in reality it is "Well, it works for me. Your [machine/configuration] is the problem."