<?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 Move/drag event in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225814#M4928</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hello! &lt;BR /&gt;&lt;BR /&gt;I need to get move/drag operation beg and end coords. Couldn't find a way to get drag event or initialize drag. Any ideas ?&lt;/DIV&gt;</description>
    <pubDate>Thu, 13 Jul 2023 13:01:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-13T13:01:34Z</dc:date>
    <item>
      <title>Move/drag event</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225814#M4928</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello! &lt;BR /&gt;&lt;BR /&gt;I need to get move/drag operation beg and end coords. Couldn't find a way to get drag event or initialize drag. Any ideas ?&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2023 13:01:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225814#M4928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-13T13:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Move/drag event</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225815#M4929</link>
      <description>&lt;BLOCKQUOTE&gt;Rinovo wrote:&lt;BR /&gt;Hello! &lt;BR /&gt;
 &lt;BR /&gt;
I need to get move/drag operation beg and end coords. Couldn't find a way to get drag event or initialize drag. Any ideas ?&lt;/BLOCKQUOTE&gt;
There are example add-ons bundled with the API to illustrate the use of many calls. For drag-drop operations, I suggest looking at &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Navigator_Test&lt;E&gt;&lt;/E&gt; and searching for &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DGDragDropMsgData&lt;E&gt;&lt;/E&gt;. You should find all the details your looking for in that data structure.</description>
      <pubDate>Mon, 19 Oct 2015 13:32:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225815#M4929</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2015-10-19T13:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Move/drag event</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225816#M4930</link>
      <description>Thanks Ralph!&lt;BR /&gt;
&lt;BR /&gt;
Will look into.</description>
      <pubDate>Mon, 19 Oct 2015 13:41:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225816#M4930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T13:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Move/drag event</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225817#M4931</link>
      <description>In navigator_test i can get drag operation in list view, didn't found what could suit me. I need to get move/drag operation when moving object and retrieve beg and end coords.   &lt;BR /&gt;
  &lt;BR /&gt;
   &lt;BR /&gt;
ACAPI_Notify_GetTranParams could be the one, but ..   
&lt;PRE&gt;*The transformation data is valid only between a APINotifyElement_BeginEvents and the following APINotifyElement_EndEvents notification.&lt;/PRE&gt;   &lt;BR /&gt;
..i don't know how to get these events. &lt;BR /&gt;
 &lt;BR /&gt;
&lt;B&gt;EDIT:&lt;/B&gt; Hmmm... i might have found a way, will set up for a try.</description>
      <pubDate>Tue, 20 Oct 2015 06:52:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225817#M4931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-20T06:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Move/drag event</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225818#M4932</link>
      <description>&lt;BLOCKQUOTE&gt;Rinovo wrote:&lt;BR /&gt;ACAPI_Notify_GetTranParams could be the one, but ..   
&lt;PRE&gt;*The transformation data is valid only between a APINotifyElement_BeginEvents and the following APINotifyElement_EndEvents notification.&lt;/PRE&gt;   &lt;BR /&gt;
..i don't know how to get these events. .&lt;/BLOCKQUOTE&gt;
Sorry, I misunderstood your question – I thought you meant drag-drop in the UI, e.g. list items. What you really want to do is track moving elements.&lt;BR /&gt;
&lt;BR /&gt;
In order to get events for an element moving, you need to instruct ARCHICAD to notify you by calling &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_Notify_InstallElementObserver&lt;E&gt;&lt;/E&gt;. You also need to identify which elements should trigger a notification with &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_Element_AttachObserver&lt;E&gt;&lt;/E&gt;.</description>
      <pubDate>Tue, 20 Oct 2015 08:35:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225818#M4932</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2015-10-20T08:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Move/drag event</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225819#M4933</link>
      <description>Thanks Ralph! &lt;BR /&gt;
 &lt;BR /&gt;
Got it working. &lt;BR /&gt;
 &lt;BR /&gt;
If i could initiate move/drag operation in project would be even better, but i guess there isn't structure for that.</description>
      <pubDate>Thu, 22 Oct 2015 08:36:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Move-drag-event/m-p/225819#M4933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-22T08:36:14Z</dc:date>
    </item>
  </channel>
</rss>

