cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

Build an addon with extra resources files using the BuildAddOn.py script

gcNamirial
Contributor

Hi! I've created an addon based on the template on github 

https://github.com/GRAPHISOFT/archicad-addon-cmake

I usually build it using the provided python script in the Tools folder and i didn't have issues until i needed to include some files inside the resources that are not images.

As in the Browser_Control example i add this definition in the AddOnFix.grc file 

'DATA' 100 "Browser Control Html" {
"index.html"
}

but when i build it doesn't see the file

\Build\NMSExport\27\INT\ResourceObjects\AddOnFix.grc.i (116) : Can't open file: i 
ndex.html (ResID: 100) 

i tried to copy the file in the ResourceObjects folder in the Build path, where the resource files are duplicated by the script before building but still it doesn't see it.

I guess that creating the project for Visual Studio and including the file manually it could work, but is there a way to fix this for the .py script?

Thanks

0 REPLIES 0