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

Print addon location

Anonymous
Not applicable
Hi,
is there any way to get the addon current working directory?
I have the addon in "Add-Ons" folder (INT version), but in other version (e.g. CZE) the path of addon is "Doplnky ArchiCADu". I tried the

IO::fileSystem.GetSpecialLocation (IO::FileSystem::ApplicationFolder, &appFolderLoc);
and
IO::fileSystem.GetSpecialLocation (IO::FileSystem::ApplicationFile, &appFolderLoc);

but this is only for the ArchiCAD.exe app.
Thx in advance.
2 REPLIES 2
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

I think you are looking for the ACAPI_GetOwnLocation function.
This functions returns the location of the add-on in the file system. Check it in the documentation!

Best Regards,
Tibor
Anonymous
Not applicable
Thanks!