<?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 Getting / generating preview images of line types, fills, etc. in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-generating-preview-images-of-line-types-fills-etc/m-p/606251#M9432</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need a preview image of such things like line types, fills, building materials (such a thing like in the composite editor where the preview of the composite can be seen). Is there a way to get such things anyhow through the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our ideas (but we miss certain steps):&lt;/P&gt;&lt;P&gt;1) Structures in the QGDrawing folder looks alike the structures used in the API describing line types, fills, etc., but we did not find a lib file which contains the implementation. Is there a way to get a lib file for the QGDrawing headers? It seems we could use this to solve some of our issues regarding the preview images, if we could build the solution, but linking fails.&lt;/P&gt;&lt;P&gt;2) We might be able to solve some of our topics if we could transform a VectorImage to a GX::Image, but so far we had no success to achieve it. Does anyone have any experience with it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 15:46:02 GMT</pubDate>
    <dc:creator>eptar</dc:creator>
    <dc:date>2024-06-03T15:46:02Z</dc:date>
    <item>
      <title>Getting / generating preview images of line types, fills, etc.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-generating-preview-images-of-line-types-fills-etc/m-p/606251#M9432</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need a preview image of such things like line types, fills, building materials (such a thing like in the composite editor where the preview of the composite can be seen). Is there a way to get such things anyhow through the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our ideas (but we miss certain steps):&lt;/P&gt;&lt;P&gt;1) Structures in the QGDrawing folder looks alike the structures used in the API describing line types, fills, etc., but we did not find a lib file which contains the implementation. Is there a way to get a lib file for the QGDrawing headers? It seems we could use this to solve some of our issues regarding the preview images, if we could build the solution, but linking fails.&lt;/P&gt;&lt;P&gt;2) We might be able to solve some of our topics if we could transform a VectorImage to a GX::Image, but so far we had no success to achieve it. Does anyone have any experience with it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 15:46:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-generating-preview-images-of-line-types-fills-etc/m-p/606251#M9432</guid>
      <dc:creator>eptar</dc:creator>
      <dc:date>2024-06-03T15:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting / generating preview images of line types, fills, etc.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-generating-preview-images-of-line-types-fills-etc/m-p/606318#M9434</link>
      <description>&lt;P&gt;There are two examples in &lt;STRONG&gt;DG_Test&lt;/STRONG&gt; example Add-On that can help you with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;Example 1: DG_Test AddOn, BuildingMaterialDialog.cpp&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;It calls the&amp;nbsp;&lt;STRONG&gt;SetTabFieldOwnerDrawFlag&lt;/STRONG&gt; on a &lt;STRONG&gt;ListBox&lt;/STRONG&gt; so the&amp;nbsp;&lt;STRONG&gt;ListBoxTabFieldUpdate&lt;/STRONG&gt; function will be called and you can draw whatever you want. Check the&amp;nbsp;&lt;STRONG&gt;UpdateBuildingMatDrawTab&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;DrawBuildingMaterial&lt;/STRONG&gt; function to see how to use actual pens and fills.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorKovacs_0-1717477428733.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/61647iFF2B1B29E6CB09AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorKovacs_0-1717477428733.png" alt="ViktorKovacs_0-1717477428733.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT size="5"&gt;Example 2: DG_Test AddOn, UserItemDialog.cpp&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This example uses a &lt;STRONG&gt;DG::UserItem&lt;/STRONG&gt; that you can draw to. Check the&amp;nbsp;&lt;STRONG&gt;UserItemUpdate&lt;/STRONG&gt; function to see how it works. Combined with the previous example I think you can achieve your goal of drawing attribute previews to any dialogs.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorKovacs_1-1717477490276.png" style="width: 200px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/61648i6CEEEF9443350B46/image-size/small?v=v2&amp;amp;px=200" role="button" title="ViktorKovacs_1-1717477490276.png" alt="ViktorKovacs_1-1717477490276.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 05:08:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-generating-preview-images-of-line-types-fills-etc/m-p/606318#M9434</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2024-06-04T05:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting / generating preview images of line types, fills, etc.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-generating-preview-images-of-line-types-fills-etc/m-p/606620#M9445</link>
      <description>&lt;P&gt;Thanks, it seems to solve our issues around the topic.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 14:32:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-generating-preview-images-of-line-types-fills-etc/m-p/606620#M9445</guid>
      <dc:creator>eptar</dc:creator>
      <dc:date>2024-06-05T14:32:44Z</dc:date>
    </item>
  </channel>
</rss>

