2024-07-25 10:20 AM
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
2024-08-22 08:10 AM
Hi!
You could try adding the folder containing the file to the CompileResources.py file. Specifically the self.addResourcesPaths property of the ResourceCompiler class. You need a semicolon ";" as a separator between paths.
Not sure if it works, but that's the first thing I'd try.