<?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 How to Set &amp;quot;Undo/Redo&amp;quot;  by API code? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Set-quot-Undo-Redo-quot-by-API-code/m-p/126975#M6237</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;How to Set Undo/Redo by API code?....Thank u.&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Aug 2023 07:47:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-03T07:47:55Z</dc:date>
    <item>
      <title>How to Set "Undo/Redo"  by API code?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Set-quot-Undo-Redo-quot-by-API-code/m-p/126975#M6237</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;How to Set Undo/Redo by API code?....Thank u.&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 07:47:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Set-quot-Undo-Redo-quot-by-API-code/m-p/126975#M6237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T07:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set "Undo/Redo"  by API code?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Set-quot-Undo-Redo-quot-by-API-code/m-p/126976#M6238</link>
      <description>&lt;BLOCKQUOTE&gt;Traro wrote:&lt;BR /&gt;How to Set Undo/Redo  by API code?....Thank u.&lt;/BLOCKQUOTE&gt;
Call &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_OpenUndoableSession&lt;E&gt;&lt;/E&gt; to start the session and &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_CloseUndoableSession&lt;E&gt;&lt;/E&gt; to end it. These functions are mandatory if you need to make changes to the project data.</description>
      <pubDate>Tue, 14 Jun 2011 16:29:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Set-quot-Undo-Redo-quot-by-API-code/m-p/126976#M6238</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-06-14T16:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set "Undo/Redo"  by API code?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Set-quot-Undo-Redo-quot-by-API-code/m-p/126977#M6239</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Traro wrote:&lt;BR /&gt;How to Set Undo/Redo  by API code?....Thank u.&lt;/BLOCKQUOTE&gt;
Call &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_OpenUndoableSession&lt;E&gt;&lt;/E&gt; to start the session and &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_CloseUndoableSession&lt;E&gt;&lt;/E&gt; to end it. These functions are mandatory if you need to make changes to the project data.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
thank u.,  but After I call &lt;BR /&gt;
&lt;BR /&gt;
GSErrCode err;&lt;BR /&gt;
&lt;BR /&gt;
err = ACAPI_OpenUndoableSession ("Element Test1");&lt;BR /&gt;
//to make changes to the project data&lt;BR /&gt;
ACAPI_CloseUndoableSession();&lt;BR /&gt;
&lt;BR /&gt;
err = ACAPI_OpenUndoableSession ("Element Test2");&lt;BR /&gt;
//to make changes to the project data&lt;BR /&gt;
ACAPI_CloseUndoableSession();&lt;BR /&gt;
&lt;BR /&gt;
err = ACAPI_OpenUndoableSession ("Element Test3");&lt;BR /&gt;
//to make changes to the project data&lt;BR /&gt;
ACAPI_CloseUndoableSession();&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
and, while I want to run back to session("Element Test2").&lt;BR /&gt;
What can I do with API Function?</description>
      <pubDate>Wed, 15 Jun 2011 02:44:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Set-quot-Undo-Redo-quot-by-API-code/m-p/126977#M6239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-15T02:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set "Undo/Redo"  by API code?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Set-quot-Undo-Redo-quot-by-API-code/m-p/126978#M6240</link>
      <description>&lt;BLOCKQUOTE&gt;Traro wrote:&lt;BR /&gt;thank u.,  but After I call &lt;BR /&gt;
err = ACAPI_OpenUndoableSession ("Element Test1");&lt;BR /&gt;
err = ACAPI_OpenUndoableSession ("Element Test2");&lt;BR /&gt;
err = ACAPI_OpenUndoableSession ("Element Test3");&lt;BR /&gt;
and, while I want to run back to session("Element Test2").&lt;BR /&gt;
What can I do with API Function?&lt;/BLOCKQUOTE&gt;
The 'undo' mechanisms are purely for the user's benefit, so the user could roll back 'test 2' by selecting &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Edit &amp;gt; Undo&lt;E&gt;&lt;/E&gt; twice. I'm not aware of any way to do this through the API (other than keeping your own transaction log and rolling back as required).</description>
      <pubDate>Wed, 15 Jun 2011 07:31:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Set-quot-Undo-Redo-quot-by-API-code/m-p/126978#M6240</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-06-15T07:31:17Z</dc:date>
    </item>
  </channel>
</rss>

