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

Archicad Plugin Get Current Path

Anonymous
Not applicable
Hi,

I want to use an external dylib in my c++ plugin, and it reads a config.json file from current folder. But when I call "std::__fs::filesystem::current_path()", it only returns "/". I'm wondering where is the default location that Archicad runs? Or where it calls a dylib?
Thanks.
1 REPLY 1
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi Yi,

On macOS platform Archicad tries to load the dynamic libraries from the Support folder next to Archicad.app, so if you Add-On uses external dynamic libraries, then you should place it into the Support folder.
On Windows platform the dynamic libraries should be placed next to Archicad.exe.