<?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 How to display profile attribute image images on DG items? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-profile-attribute-image-images-on-DG-items/m-p/586583#M9144</link>
    <description>&lt;P&gt;Could I know a method how to display a picture like profile attribute preview of the Profile Manager on DG dialog in AC26 AddOn?&lt;BR /&gt;Specifically, it is assumed that the profile_vectorImageItems field of API_AttributeDefExt will be displayed as UserItem of DG.&lt;BR /&gt;I found able to use NewDisplay to draw an image on DG's UserItem at the Do_UCTest function in AddOn sample DG_Test.cpp. So I tried to use APIAny_ConvertMimePictureID function to directly convert the profile_vectorImageItems field of API_AttributeDefExt to API_MimePicture information. But this function returns APIERR_BADPARS, and I was unable to set the preview image of a profile attribute to NewDisplay.&lt;BR /&gt;I looked for information such as API and DG documentation. But I wasn't sure if another conversion was needed before setting the profile_vectorImageItems field to APIAny_ConvertMimePictureID, or if there was a completely separate method.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 12:58:30 GMT</pubDate>
    <dc:creator>Ryo-H</dc:creator>
    <dc:date>2024-09-16T12:58:30Z</dc:date>
    <item>
      <title>How to display profile attribute image images on DG items?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-profile-attribute-image-images-on-DG-items/m-p/586583#M9144</link>
      <description>&lt;P&gt;Could I know a method how to display a picture like profile attribute preview of the Profile Manager on DG dialog in AC26 AddOn?&lt;BR /&gt;Specifically, it is assumed that the profile_vectorImageItems field of API_AttributeDefExt will be displayed as UserItem of DG.&lt;BR /&gt;I found able to use NewDisplay to draw an image on DG's UserItem at the Do_UCTest function in AddOn sample DG_Test.cpp. So I tried to use APIAny_ConvertMimePictureID function to directly convert the profile_vectorImageItems field of API_AttributeDefExt to API_MimePicture information. But this function returns APIERR_BADPARS, and I was unable to set the preview image of a profile attribute to NewDisplay.&lt;BR /&gt;I looked for information such as API and DG documentation. But I wasn't sure if another conversion was needed before setting the profile_vectorImageItems field to APIAny_ConvertMimePictureID, or if there was a completely separate method.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:58:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-display-profile-attribute-image-images-on-DG-items/m-p/586583#M9144</guid>
      <dc:creator>Ryo-H</dc:creator>
      <dc:date>2024-09-16T12:58:30Z</dc:date>
    </item>
  </channel>
</rss>

