<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Build an addon with extra resources files using the BuildAddOn.py script in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Build-an-addon-with-extra-resources-files-using-the-BuildAddOn/m-p/627364#M9758</link>
    <description>&lt;P&gt;Hi!&lt;BR /&gt;You could try adding the folder containing the file to the &lt;STRONG&gt;CompileResources&lt;/STRONG&gt;.py file. Specifically the &lt;STRONG&gt;self.addResourcesPaths&lt;/STRONG&gt; property of the &lt;STRONG&gt;ResourceCompiler&lt;/STRONG&gt; class. You need a semicolon ";" as a separator between paths.&lt;BR /&gt;Not sure if it works, but that's the first thing I'd try.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 06:10:17 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2024-08-22T06:10:17Z</dc:date>
    <item>
      <title>Build an addon with extra resources files using the BuildAddOn.py script</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Build-an-addon-with-extra-resources-files-using-the-BuildAddOn/m-p/619773#M9717</link>
      <description>&lt;P&gt;Hi! I've created an addon based on the template on github&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://github.com/GRAPHISOFT/archicad-addon-cmake&lt;/PRE&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;As in the Browser_Control example i add this definition in the AddOnFix.grc file&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'DATA' 100 "Browser Control Html" {&lt;BR /&gt;"index.html"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;but when i build it doesn't see the file&lt;/P&gt;&lt;PRE&gt;\Build\NMSExport\27\INT\ResourceObjects\AddOnFix.grc.i (116) : Can't open file: i &lt;BR /&gt;ndex.html (ResID: 100)&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 08:20:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Build-an-addon-with-extra-resources-files-using-the-BuildAddOn/m-p/619773#M9717</guid>
      <dc:creator>gcNamirial</dc:creator>
      <dc:date>2024-07-25T08:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Build an addon with extra resources files using the BuildAddOn.py script</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Build-an-addon-with-extra-resources-files-using-the-BuildAddOn/m-p/627364#M9758</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;You could try adding the folder containing the file to the &lt;STRONG&gt;CompileResources&lt;/STRONG&gt;.py file. Specifically the &lt;STRONG&gt;self.addResourcesPaths&lt;/STRONG&gt; property of the &lt;STRONG&gt;ResourceCompiler&lt;/STRONG&gt; class. You need a semicolon ";" as a separator between paths.&lt;BR /&gt;Not sure if it works, but that's the first thing I'd try.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 06:10:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Build-an-addon-with-extra-resources-files-using-the-BuildAddOn/m-p/627364#M9758</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2024-08-22T06:10:17Z</dc:date>
    </item>
  </channel>
</rss>

