<?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: How to extract tree textures or tree type from placed GSM objects in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-extract-tree-textures-or-tree-type-from-placed-GSM/m-p/664448#M10426</link>
    <description>&lt;P&gt;Hi, I'd suggest you to use&amp;nbsp;&lt;SPAN&gt;ACAPI_Element_GetMemo&lt;/SPAN&gt;&lt;SPAN&gt; () to get the instance parameter values, you can get actual value of tree type index from memo.params array. For actual textures, as the default Deciduous Trees.gsm is using embedded textures, so you're not able to get the file path.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;HTH.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2025 01:26:20 GMT</pubDate>
    <dc:creator>Hiromichi Shinkawa</dc:creator>
    <dc:date>2025-06-03T01:26:20Z</dc:date>
    <item>
      <title>How to extract tree textures or tree type from placed GSM objects</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-extract-tree-textures-or-tree-type-from-placed-GSM/m-p/653201#M10158</link>
      <description>&lt;P class=""&gt;I'm developing an add-on that needs to extract textures of trees placed in a scene. I've made progress but I'm still missing a crucial piece of the puzzle.&lt;/P&gt;&lt;H2&gt;What I've accomplished so far:&lt;/H2&gt;&lt;UL class=""&gt;&lt;LI&gt;I can identify when a tree object is placed in the scene (Deciduous Trees.gsm)&lt;/LI&gt;&lt;LI&gt;I can extract the GSM file and analyze its structure&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;My challenge:&lt;/H2&gt;&lt;P class=""&gt;When I extract the GSM object, I only get information about the general "Deciduous Trees" object, but not which &lt;STRONG&gt;specific tree&lt;/STRONG&gt; the user placed (oak, maple, etc.), nor can I find the path to its textures.&lt;/P&gt;&lt;P class=""&gt;From my logs, I can see:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;The GSM path: .../Plants and Outdoor Accessories/Plants/Deciduous Trees.gsm&lt;/LI&gt;&lt;LI&gt;I can access parameter definitions, but the actual values seem empty&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;My specific questions:&lt;/H2&gt;&lt;OL class=""&gt;&lt;LI&gt;How do I determine which specific tree type was placed in the scene?&lt;/LI&gt;&lt;LI&gt;How do I access the instance parameters (not just the GSM object parameters)?&lt;/LI&gt;&lt;LI&gt;What's the best way to get the path to the actual textures used for this specific tree?&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;I suspect I need to access the instance parameters rather than just examining the GSM object definition, but I'm not sure about the correct approach in the API.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 10:08:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-extract-tree-textures-or-tree-type-from-placed-GSM/m-p/653201#M10158</guid>
      <dc:creator>vesalaasanen</dc:creator>
      <dc:date>2025-02-26T10:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract tree textures or tree type from placed GSM objects</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-extract-tree-textures-or-tree-type-from-placed-GSM/m-p/664448#M10426</link>
      <description>&lt;P&gt;Hi, I'd suggest you to use&amp;nbsp;&lt;SPAN&gt;ACAPI_Element_GetMemo&lt;/SPAN&gt;&lt;SPAN&gt; () to get the instance parameter values, you can get actual value of tree type index from memo.params array. For actual textures, as the default Deciduous Trees.gsm is using embedded textures, so you're not able to get the file path.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;HTH.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 01:26:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-extract-tree-textures-or-tree-type-from-placed-GSM/m-p/664448#M10426</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2025-06-03T01:26:20Z</dc:date>
    </item>
  </channel>
</rss>

