<?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 My error with API Dev Kit in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/My-error-with-API-Dev-Kit/m-p/123284#M6665</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, All&lt;BR /&gt;&lt;BR /&gt;I wish to make MFC DLL (Regular DLL with MFC statically linked) in VS 2005 C++ with API Dev Kit 11. &lt;BR /&gt;&lt;BR /&gt;In procedure : &lt;BR /&gt;static void Do_Open (void)&lt;BR /&gt;{ API_FileOpenPars fop;&lt;BR /&gt;GSErrCode err;&lt;BR /&gt;&lt;BR /&gt;BNZeroMemory (&amp;amp;fop, sizeof (API_FileOpenPars));&lt;BR /&gt;&lt;BR /&gt;fop.fileTypeID = APIFType_PlanFile;&lt;BR /&gt;fop.useStoredLib = true;&lt;BR /&gt;&lt;BR /&gt;IO::Location folderLoc;&lt;BR /&gt;API_SpecFolderID specID = API_ApplicationFolderID;&lt;BR /&gt;ACAPI_Environment (APIEnv_GetSpecFolderID, &amp;amp;specID, &amp;amp;folderLoc);&lt;BR /&gt;folderLoc.AppendToLocal ("ArchiCAD Examples");&lt;BR /&gt;folderLoc.AppendToLocal ("Residential House");&lt;BR /&gt;&lt;BR /&gt;fop.file = new IO::Location (folderLoc, "Residential House.pla");&lt;BR /&gt;&lt;BR /&gt;err = ACAPI_Automate (APIDo_OpenID, &amp;amp;fop, NULL);&lt;BR /&gt;if (err != NoError) {&lt;BR /&gt;char msgStr[256];&lt;BR /&gt;sprintf (msgStr, "Error in APIDo_OpenID: %d", (int) err);&lt;BR /&gt;ACAPI_WriteReport (msgStr, true);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;delete fop.file;&lt;BR /&gt;&lt;BR /&gt;return;&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;I got error : error C3861: 'ACAPI_Environment': identifier not found.&lt;BR /&gt;&lt;BR /&gt;Where find this procedure?&lt;BR /&gt;&lt;BR /&gt;Hope to your help! &lt;BR /&gt;Thanks in advance.&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Aug 2023 15:17:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-03T15:17:52Z</dc:date>
    <item>
      <title>My error with API Dev Kit</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/My-error-with-API-Dev-Kit/m-p/123284#M6665</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, All&lt;BR /&gt;&lt;BR /&gt;I wish to make MFC DLL (Regular DLL with MFC statically linked) in VS 2005 C++ with API Dev Kit 11. &lt;BR /&gt;&lt;BR /&gt;In procedure : &lt;BR /&gt;static void Do_Open (void)&lt;BR /&gt;{ API_FileOpenPars fop;&lt;BR /&gt;GSErrCode err;&lt;BR /&gt;&lt;BR /&gt;BNZeroMemory (&amp;amp;fop, sizeof (API_FileOpenPars));&lt;BR /&gt;&lt;BR /&gt;fop.fileTypeID = APIFType_PlanFile;&lt;BR /&gt;fop.useStoredLib = true;&lt;BR /&gt;&lt;BR /&gt;IO::Location folderLoc;&lt;BR /&gt;API_SpecFolderID specID = API_ApplicationFolderID;&lt;BR /&gt;ACAPI_Environment (APIEnv_GetSpecFolderID, &amp;amp;specID, &amp;amp;folderLoc);&lt;BR /&gt;folderLoc.AppendToLocal ("ArchiCAD Examples");&lt;BR /&gt;folderLoc.AppendToLocal ("Residential House");&lt;BR /&gt;&lt;BR /&gt;fop.file = new IO::Location (folderLoc, "Residential House.pla");&lt;BR /&gt;&lt;BR /&gt;err = ACAPI_Automate (APIDo_OpenID, &amp;amp;fop, NULL);&lt;BR /&gt;if (err != NoError) {&lt;BR /&gt;char msgStr[256];&lt;BR /&gt;sprintf (msgStr, "Error in APIDo_OpenID: %d", (int) err);&lt;BR /&gt;ACAPI_WriteReport (msgStr, true);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;delete fop.file;&lt;BR /&gt;&lt;BR /&gt;return;&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;I got error : error C3861: 'ACAPI_Environment': identifier not found.&lt;BR /&gt;&lt;BR /&gt;Where find this procedure?&lt;BR /&gt;&lt;BR /&gt;Hope to your help! &lt;BR /&gt;Thanks in advance.&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:17:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/My-error-with-API-Dev-Kit/m-p/123284#M6665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T15:17:52Z</dc:date>
    </item>
  </channel>
</rss>

