<?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 Prevent element from copy user data in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290643#M5246</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I use function function ACAPI_​Element_​SetUserData to attach additional information. The problem is that this data is copied with element when i "Drag a Copy" and then I have to deal with unwanted behaviorur caused by that. Is there a way to prevent Archicad from copying this additional bytes?&lt;/DIV&gt;</description>
    <pubDate>Tue, 06 Dec 2022 13:05:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-06T13:05:44Z</dc:date>
    <item>
      <title>Prevent element from copy user data</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290643#M5246</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I use function function ACAPI_​Element_​SetUserData to attach additional information. The problem is that this data is copied with element when i "Drag a Copy" and then I have to deal with unwanted behaviorur caused by that. Is there a way to prevent Archicad from copying this additional bytes?&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Dec 2022 13:05:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290643#M5246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T13:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent element from copy user data</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290644#M5247</link>
      <description>&lt;BLOCKQUOTE&gt;kostek142 wrote:&lt;BR /&gt;I use function function ACAPI_​Element_​SetUserData to attach additional information. The problem is that this data is copied with element when i "Drag a Copy"  and then I have to deal with unwanted behaviorur caused by that. Is there a way to prevent archicad from copying this additional bytes?&lt;/BLOCKQUOTE&gt;
Take a look at the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;flags&lt;E&gt;&lt;/E&gt; member of the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;API_ElementUserData&lt;E&gt;&lt;/E&gt; struct you pass to &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_​Element_​SetUserData&lt;E&gt;&lt;/E&gt; – this controls what happens to user data in events like this.</description>
      <pubDate>Wed, 14 Jun 2017 19:36:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290644#M5247</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2017-06-14T19:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent element from copy user data</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290645#M5248</link>
      <description>Can you  tell me what specific flag can prevent my data from being copied? I think I have tried all of them with no positive result.</description>
      <pubDate>Thu, 15 Jun 2017 11:05:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290645#M5248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-15T11:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent element from copy user data</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290646#M5249</link>
      <description>&lt;BLOCKQUOTE&gt;kostek142 wrote:&lt;BR /&gt;Can you  tell me what specific flag can prevent my data from being copied? I think I have tried all of them with no positive result.&lt;/BLOCKQUOTE&gt;
I'd forgotten about that – the relevant flag &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIUserDataFlag_Copy&lt;E&gt;&lt;/E&gt; disappeared from AC18 onward. You may need to request notification of the creation of new elements so you clear/update the data attached to the element as required. Perhaps someone else might have another solution.</description>
      <pubDate>Thu, 15 Jun 2017 11:24:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290646#M5249</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2017-06-15T11:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent element from copy user data</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290647#M5250</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;kostek142 wrote:&lt;BR /&gt;Can you  tell me what specific flag can prevent my data from being copied? I think I have tried all of them with no positive result.&lt;/BLOCKQUOTE&gt;
I'd forgotten about that – the relevant flag &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIUserDataFlag_Copy&lt;E&gt;&lt;/E&gt; disappeared from AC18 onward. You may need to request notification of the creation of new elements so you clear/update the data attached to the element as required. Perhaps someone else might have another solution.&lt;/BLOCKQUOTE&gt;

If I remember well you have to leave the userData.flags empty, which means that the user data will not be copied to the new element. If you want to update the user data, then do as Ralph suggested.&lt;BR /&gt;
&lt;BR /&gt;
Regards, Akos</description>
      <pubDate>Thu, 15 Jun 2017 13:15:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290647#M5250</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2017-06-15T13:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent element from copy user data</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290648#M5251</link>
      <description>Thanks for reply Akos.&lt;BR /&gt;
&lt;BR /&gt;
Unfourtunately leaving flag empty also wasn't the solution. I found workaround, just wanted to notice the fact, maybe you can fix it in the next build of API or something&lt;BR /&gt;
&lt;BR /&gt;
Regards</description>
      <pubDate>Fri, 16 Jun 2017 17:37:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290648#M5251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-16T17:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent element from copy user data</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290649#M5252</link>
      <description>&lt;BLOCKQUOTE&gt;kostek142 wrote:&lt;BR /&gt;Thanks for reply Akos.&lt;BR /&gt;
&lt;BR /&gt;
Unfourtunately leaving flag empty also wasn't the solution. I found workaround, just wanted to notice the fact, maybe you can fix it in the next build of API or something&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;/BLOCKQUOTE&gt;

Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Akos</description>
      <pubDate>Fri, 30 Jun 2017 10:56:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Prevent-element-from-copy-user-data/m-p/290649#M5252</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2017-06-30T10:56:43Z</dc:date>
    </item>
  </channel>
</rss>

