<?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: ACAPI_MigrationHeader.hpp in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-MigrationHeader-hpp/m-p/577179#M8908</link>
    <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes these errors are in the Migration Header. They are "reasonable easy" to fix with a bit of research. But if you don't need them in any of your project anyway, you can just comment them out or delete the offending cases/functions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 19:27:23 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2023-11-23T19:27:23Z</dc:date>
    <item>
      <title>ACAPI_MigrationHeader.hpp</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-MigrationHeader-hpp/m-p/576765#M8901</link>
      <description>&lt;P&gt;I have returned to my edits of AC25 Add-ons for use in AC27.&amp;nbsp; We skipped AC26.&amp;nbsp; I have successfully modified a 25 Add-on for use in 26 and CMake.&amp;nbsp; This time, I am seeing what the benefits/hassles are in going from 25 to 27.&lt;BR /&gt;&lt;BR /&gt;Anyways...&amp;nbsp; I have seen that &lt;EM&gt;"many API functions have been renamed to reflect their true purpose more accurately. The ACAPI_MigrationHeader.hpp header file eases the transition for you"&lt;/EM&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also seen that &lt;EM&gt;"You can use the&amp;nbsp;ACAPI_MigrationHeader.hpp&amp;nbsp;included in the AC27 DevKit. It needs some adaptions since there are some errors in it, ..." .&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, when I&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#include "ACAPI_MigrationHeader.hpp"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and build, I recieve these errors, all pointing back to the ACAPI_MigrationHeader.hpp file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPI_MigrationHeader.hpp(157,94): error C2061: syntax error: identifier 'API_PenType' 
C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPI_MigrationHeader.hpp(751,40): error C2660: 'ACAPI_ProjectOperation_Quit': function does not take 0 arguments 
  C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPI_Automate.h(252,36): message : see declaration of 'ACAPI_ProjectOperation_Quit' [G:\dev\v27\JHP_Links\out\build\x64-Debug\JHP_Links.vcxproj]
C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPI_MigrationHeader.hpp(1209,9): error C3861: 'ACAPI_GraphicalOverride_GetOverrideRule': identifier not found 
C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPI_MigrationHeader.hpp(1221,57): error C2660: 'ACAPI_GraphicalOverride_CreateOverrideRule': function does not take 1 arguments 
  C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPinc.h(1480,36): message : see declaration of 'ACAPI_GraphicalOverride_CreateOverrideRule' [G:\dev\v27\JHP_Links\out\build\x64-Debug\JHP_Links.vcxproj]
C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPI_MigrationHeader.hpp(1683,71): error C2664: 'GS::GSErrCode ACAPI_ElementSet_Create(GS::Array&amp;lt;API_Guid&amp;gt; *,const API_UserData *,API_Guid *)': cannot convert argument 1 from 'const GS::Array&amp;lt;API_Guid&amp;gt;' to 'GS::Array&amp;lt;API_Guid&amp;gt; *' 
  C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPI_MigrationHeader.hpp(1683,34): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called [G:\dev\v27\JHP_Links\out\build\x64-Debug\JHP_Links.vcxproj]
  C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPinc.h(5816,36): message : see declaration of 'ACAPI_ElementSet_Create' [G:\dev\v27\JHP_Links\out\build\x64-Debug\JHP_Links.vcxproj]
C:\Program Files\GRAPHISOFT\API Development Kit 27.3001\Support\Inc\ACAPI_MigrationHeader.hpp(2097,9): error C3861: 'ACAPI_Preferences_SetOldVersion': identifier not found 

Build All failed.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect these are errors in the actual ACAPI_MigrationHeader.hpp, as mentioned or errors in my code that utilize the migration header.&amp;nbsp; But, based on a grep, the offending functions are not familiar to me as part of my code.&amp;nbsp; And, try as I may, I am finding very little mention in the forum or in documentation about a solution to these 'errors'.&lt;BR /&gt;&lt;BR /&gt;I did find this:&lt;BR /&gt;&lt;A href="https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-further-community-access/td-p/573537" target="_blank" rel="noopener"&gt;https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-further-community-access/td-p/573537&lt;/A&gt;&lt;BR /&gt;but it is not very helpful for me.&lt;BR /&gt;&lt;BR /&gt;A point in the right direction or a brief explanation would be very helpful, as well as appreciated.&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 10:46:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-MigrationHeader-hpp/m-p/576765#M8901</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-09-17T10:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_MigrationHeader.hpp</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-MigrationHeader-hpp/m-p/577179#M8908</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes these errors are in the Migration Header. They are "reasonable easy" to fix with a bit of research. But if you don't need them in any of your project anyway, you can just comment them out or delete the offending cases/functions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 19:27:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-MigrationHeader-hpp/m-p/577179#M8908</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-23T19:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_MigrationHeader.hpp</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-MigrationHeader-hpp/m-p/578417#M8945</link>
      <description>&lt;P&gt;Hello Bernd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will comment the offensive functions out of 'migration header.hpp' and hope for the best that they are not needed in future projects.&amp;nbsp; Or maybe I will fix by then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for sharing,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 22:40:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-MigrationHeader-hpp/m-p/578417#M8945</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2023-11-30T22:40:48Z</dc:date>
    </item>
  </channel>
</rss>

