<?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: Incorrect CHCopyC behavior? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652632#M10146</link>
    <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/116612"&gt;@Emkave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have posted this in the GDL forum (or it may have been moved there).&lt;/P&gt;
&lt;P&gt;Is it actually an API/C++ question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 03:22:43 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2025-02-21T03:22:43Z</dc:date>
    <item>
      <title>Incorrect CHCopyC behavior?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652564#M10145</link>
      <description>&lt;P&gt;Good day folks. I have an issue with CHCopyC here.&lt;BR /&gt;&lt;BR /&gt;Basically i have this expression:&lt;BR /&gt;&lt;BR /&gt;CHCopyC(gdl_param.stringData.c_str(), reinterpret_cast&amp;lt;char*&amp;gt;(memo_param.value.uStr));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use it to update the values of properties of elements. However, I got stuck with one particular property called: "Cover Sheet Type".&lt;BR /&gt;&lt;BR /&gt;When I create an element, it is set to a correct value like "A10" or "A09" or else.&lt;BR /&gt;&lt;BR /&gt;However, when I execute the expression above, I receive some nonsense.&lt;BR /&gt;Assume:&lt;BR /&gt;gdl_param.stringData = "A10";&lt;BR /&gt;and&amp;nbsp;&lt;BR /&gt;memo_param.value.uStr = {&amp;lt;something&amp;gt;};&lt;BR /&gt;&lt;BR /&gt;By ASCII, "A10" is 65, 49, 48. Hence I expect memo_param.value.uStr to contain {65, 49, 48}. Unfortunately that does not happen and I receive {12609, 49, 48}. I have no idea what "12609" should map to in ASCII, but that is definitely not correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The more interesting thing is that I have no problem with other string values. It is only the "Cover Sheet Type" parameter that causes this issue.&lt;BR /&gt;&lt;BR /&gt;Had someone had such issue before and how did you resolve it? I'll be glad for your response! Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Windows 11&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 16:18:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652564#M10145</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-02-20T16:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect CHCopyC behavior?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652632#M10146</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/116612"&gt;@Emkave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have posted this in the GDL forum (or it may have been moved there).&lt;/P&gt;
&lt;P&gt;Is it actually an API/C++ question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 03:22:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652632#M10146</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2025-02-21T03:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect CHCopyC behavior?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652681#M10147</link>
      <description>&lt;P&gt;Yes. I am not completely understanding the structure of topics and labels here. Like, I tried to find something very close related to the API and C++, but none were presented in the list&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 10:45:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652681#M10147</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-02-21T10:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect CHCopyC behavior?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652692#M10148</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/116612"&gt;@Emkave&lt;/a&gt;&amp;nbsp;we have a dedicated API board:&amp;nbsp;&lt;A href="https://community.graphisoft.com/t5/Archicad-C-API/bd-p/forum-ac-api" target="_blank"&gt;https://community.graphisoft.com/t5/Archicad-C-API/bd-p/forum-ac-api&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 11:21:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652692#M10148</guid>
      <dc:creator>Noemi Balogh</dc:creator>
      <dc:date>2025-02-21T11:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect CHCopyC behavior?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652693#M10149</link>
      <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 11:22:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Incorrect-CHCopyC-behavior/m-p/652693#M10149</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-02-21T11:22:23Z</dc:date>
    </item>
  </channel>
</rss>

