<?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: Set Property to Attribute in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Set-Property-to-Attribute/m-p/252207#M2924</link>
    <description>I have the following errors:&lt;BR /&gt;
1/ ACAPI_Property_CreatePropertyGroup return =&amp;gt; APIERR_NEEDSUNDOSCOPE even if we use ACAPI_CallUndoableCommand in  __ACENV_CALL MenuCommandHandler&lt;BR /&gt;
2/ ACAPI_Attribute_SetProperty return =&amp;gt; APIERR_BADID (same process than TestPropertiesOnAttribute () in Property_Test, the Building Materials are successfully created but it is not possible to add them properties)&lt;BR /&gt;
&lt;BR /&gt;
Our project is based on the Browser_Control project.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.</description>
    <pubDate>Thu, 11 Jun 2020 12:53:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-11T12:53:57Z</dc:date>
    <item>
      <title>Set Property to Attribute</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Set-Property-to-Attribute/m-p/252205#M2922</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;We are currently developping an addons for Archicad. However, we have still issues despite the documentation and examples.&lt;BR /&gt;Our issues:&lt;BR /&gt;1- Property Group: We cannot create new Property Group even if it's working with the addon example Property_Test&lt;BR /&gt;API_PropertyGroup group;&lt;BR /&gt;group.guid = APINULLGuid;&lt;BR /&gt;group.name = "datBIM" + GenerateUniqueName();&lt;BR /&gt;ACAPI_Property_CreatePropertyGroup(group); =&amp;gt; Not Working&lt;BR /&gt;2- Attribute Property: We cannot create new Property for Attributes with ACAPI_Attribute_SetProperty(attrib.header, property); even if it's working with Elements with ACAPI_ElementList_AddProperty(definition, guidList);&lt;BR /&gt;&lt;BR /&gt;Thank you for your help&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 09:48:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Set-Property-to-Attribute/m-p/252205#M2922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T09:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Property to Attribute</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Set-Property-to-Attribute/m-p/252206#M2923</link>
      <description>What errors (if any) are returned by these calls?</description>
      <pubDate>Thu, 11 Jun 2020 10:03:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Set-Property-to-Attribute/m-p/252206#M2923</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-06-11T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Property to Attribute</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Set-Property-to-Attribute/m-p/252207#M2924</link>
      <description>I have the following errors:&lt;BR /&gt;
1/ ACAPI_Property_CreatePropertyGroup return =&amp;gt; APIERR_NEEDSUNDOSCOPE even if we use ACAPI_CallUndoableCommand in  __ACENV_CALL MenuCommandHandler&lt;BR /&gt;
2/ ACAPI_Attribute_SetProperty return =&amp;gt; APIERR_BADID (same process than TestPropertiesOnAttribute () in Property_Test, the Building Materials are successfully created but it is not possible to add them properties)&lt;BR /&gt;
&lt;BR /&gt;
Our project is based on the Browser_Control project.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.</description>
      <pubDate>Thu, 11 Jun 2020 12:53:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Set-Property-to-Attribute/m-p/252207#M2924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-11T12:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Property to Attribute</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Set-Property-to-Attribute/m-p/252208#M2925</link>
      <description>Are you certain &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Property_CreatePropertyGroup&lt;E&gt;&lt;/E&gt; is called within the scope of &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_CallUndoableCommand&lt;E&gt;&lt;/E&gt;? The error strongly suggests it isn't - we use this function successfully in a number of add-ons.&lt;BR /&gt;
&lt;BR /&gt;
I can't comment on &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Attribute_SetProperty&lt;E&gt;&lt;/E&gt; – we haven't used it for anything yet. I have some recollection that properties attached to attributes are still limited compared to elements, but I can't remember the specifics.</description>
      <pubDate>Thu, 11 Jun 2020 13:22:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Set-Property-to-Attribute/m-p/252208#M2925</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-06-11T13:22:12Z</dc:date>
    </item>
  </channel>
</rss>

