<?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: Custom Property UserUndefined in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/311151#M2263</link>
    <description>&lt;P&gt;Hello Viktor,&lt;/P&gt;&lt;P&gt;Sorry to insist, but we still cannot succeed in wrapping the BrowserPalette::RegisterACAPIJavascriptObject() or any JSFunction inside&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;ACAPI_CallUndoableCommand&lt;/STRONG&gt; in the case of the Browser_Control example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 09:32:07 GMT</pubDate>
    <dc:creator>guillaumeks1</dc:creator>
    <dc:date>2021-10-22T09:32:07Z</dc:date>
    <item>
      <title>Custom Property UserUndefined</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309205#M2258</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on an add-on for AC24.&lt;/P&gt;
&lt;P&gt;The base of our add-on is the Browser_Control example.&lt;/P&gt;
&lt;P&gt;We are selecting an element in the model and we are importing properties information for the selected element.&lt;/P&gt;
&lt;P&gt;We cannot create a new Property Group like its done with Property_Test.&lt;/P&gt;
&lt;P&gt;API_PropertyGroup group;&lt;BR /&gt;group.guid = APINULLGuid;&lt;BR /&gt;group.name = "PROPERTY GROUP NAME" + guid.ToUniString();&lt;BR /&gt;ACAPI_Property_CreatePropertyGroup(group);&lt;/P&gt;
&lt;P&gt;is not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moreover, we would like to set property definition default value to Undefined:&lt;/P&gt;
&lt;P&gt;definition.defaultValue.basicValue.variantStatus = API_VariantStatusUserUndefined;&lt;/P&gt;
&lt;P&gt;is not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 07:44:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309205#M2258</guid>
      <dc:creator>guillaumeks1</dc:creator>
      <dc:date>2024-09-24T07:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Property UserUndefined</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309436#M2259</link>
      <description>&lt;P&gt;Please make sure that you are calling&amp;nbsp;&lt;SPAN&gt;ACAPI_Property_CreatePropertyGroup in an undoable command scope (&lt;SPAN class="hljs-function"&gt;ACAPI_CallUndoableCommand&lt;/SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;More information here (check the Undo Scope) section:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://archicadapi.graphisoft.com/Archicad-maze-generator-add-on-tutorial-part-1" target="_blank"&gt;https://archicadapi.graphisoft.com/Archicad-maze-generator-add-on-tutorial-part-1&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 11:22:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309436#M2259</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2021-10-15T11:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Property UserUndefined</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309443#M2260</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;Well I think so. Please find below our code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="guillaumeks1_0-1634303872029.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5924i336542687D2F3533/image-size/medium?v=v2&amp;amp;px=400" role="button" title="guillaumeks1_0-1634303872029.png" alt="guillaumeks1_0-1634303872029.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 13:18:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309443#M2260</guid>
      <dc:creator>guillaumeks1</dc:creator>
      <dc:date>2021-10-15T13:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Property UserUndefined</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309446#M2261</link>
      <description>&lt;P&gt;This function only shows the palette, it doesn't do any modification in the database. After the palette is opened, the undo scope closes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to wrap the code with&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;ACAPI_CallUndoableCommand&lt;/STRONG&gt; where the real modification happens.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 13:42:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309446#M2261</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2021-10-15T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Property UserUndefined</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309625#M2262</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;
&lt;P&gt;Sorry, I am quite new in Cpp and Archicad API. Like said before, our Add On is based on the Browser_Control.&lt;/P&gt;
&lt;P&gt;We use it in order to add data from a web server.&lt;/P&gt;
&lt;P&gt;All of our code is in the function BrowserPalette::RegisterACAPIJavaScriptObject. We try to wrap it with&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;ACAPI_CallUndoableCommand&amp;nbsp;&lt;/STRONG&gt;however without success.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="guillaumeks1_0-1634572705289.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5960i87E0119E3008C042/image-size/large?v=v2&amp;amp;px=999" role="button" title="guillaumeks1_0-1634572705289.png" alt="guillaumeks1_0-1634572705289.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 22:53:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/309625#M2262</guid>
      <dc:creator>guillaumeks1</dc:creator>
      <dc:date>2021-10-18T22:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Property UserUndefined</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/311151#M2263</link>
      <description>&lt;P&gt;Hello Viktor,&lt;/P&gt;&lt;P&gt;Sorry to insist, but we still cannot succeed in wrapping the BrowserPalette::RegisterACAPIJavascriptObject() or any JSFunction inside&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;ACAPI_CallUndoableCommand&lt;/STRONG&gt; in the case of the Browser_Control example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 09:32:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/311151#M2263</guid>
      <dc:creator>guillaumeks1</dc:creator>
      <dc:date>2021-10-22T09:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Property UserUndefined</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/311154#M2264</link>
      <description>&lt;P&gt;Could you please attach the wrapping code?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 09:34:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Custom-Property-UserUndefined/m-p/311154#M2264</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2021-10-22T09:34:24Z</dc:date>
    </item>
  </channel>
</rss>

