<?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: How to open a Teamwork Project? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-open-a-Teamwork-Project/m-p/357170#M1784</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;it is not possible to open teamwork project through API in the current Archicad instance.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 06:32:54 GMT</pubDate>
    <dc:creator>Mihaly Palenik</dc:creator>
    <dc:date>2022-09-27T06:32:54Z</dc:date>
    <item>
      <title>How to open a Teamwork Project?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-open-a-Teamwork-Project/m-p/308345#M1783</link>
      <description>&lt;P&gt;Hello, I am trying to open a Teamwork Project on a C++ Addon, but so far I haven't been successful. Is there any documentation available about this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So far I've tried to open it through the&amp;nbsp;ACAPI_Automate (APIDo_OpenID) as per the following excerpt, but&amp;nbsp;it fails with error code -7003 (which isn't listed on APIdefs_ErrorCodes.h):&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;IO::Location twProject;
// The actual input data was inspected from an APIEnv_ProjectID call on a Teamwork project up to the point where the toURL method output was identical
twProject.AppendToNetwork(IO::Name("NETWORK_NAME"));
twProject.AppendToLocal(IO::Name("LOCAL_NAME"));
twProject.SetUserName("TW_USERNAME");
twProject.SetPassword("TW_ENCODED_PASSWORD");
twProject.SetScheme("teamwork");

API_FileOpenPars openPars;
BNZeroMemory(&amp;amp;openPars, sizeof(API_FileOpenPars));
openPars.fileTypeID = APIFType_WGProjFile;
openPars.file = &amp;amp;twProject;

GSErrCode err = ACAPI_Automate(APIDo_OpenID, &amp;amp;openPars, nullptr);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a matter of fact, if I open a Teamwork Project on Archicad and feed the output&amp;nbsp; of the APIEnv_ProjectID call (location_team) into the API_FileOpenPars file parameters (ie, try to reopen the currently opened TW project) it also fails with the same exact error code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the right approach for opening Teamwork projects? If yes, what am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Gustavo Rocha&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 19:49:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-open-a-Teamwork-Project/m-p/308345#M1783</guid>
      <dc:creator>gustavorochakv</dc:creator>
      <dc:date>2021-10-05T19:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a Teamwork Project?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-open-a-Teamwork-Project/m-p/357170#M1784</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;it is not possible to open teamwork project through API in the current Archicad instance.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 06:32:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-open-a-Teamwork-Project/m-p/357170#M1784</guid>
      <dc:creator>Mihaly Palenik</dc:creator>
      <dc:date>2022-09-27T06:32:54Z</dc:date>
    </item>
  </channel>
</rss>

