<?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 handle a mouse click in the Floor plan window? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176063#M6748</link>
    <description>Dear Ralph, thank you for asking!&lt;BR /&gt;
&lt;BR /&gt;
My add-on is active, it implements the &lt;B&gt;ACAPI_Notify_CatchSelectionChange&lt;/B&gt; callback function. I need to determine the exact coordinates where the user has clicked on my library part based element which he/she selected first.&lt;BR /&gt;
&lt;BR /&gt;
I need to implement regular ArchiCAD behavior, as with standard elements like slabs or hatches. In ArchiCAD you need to select slab first, so the editable points appear on the edges. Then you click one of the points to edit it and so.&lt;BR /&gt;
&lt;BR /&gt;
I would like to implement the same behavior with my library part based objects. The user clicks an object first to select it. Then he clicks on some part of this object and my add-on needs to determine what part he has clicked to run the appropriate edit functionality.</description>
    <pubDate>Wed, 26 Aug 2009 18:20:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-08-26T18:20:33Z</dc:date>
    <item>
      <title>How to handle a mouse click in the Floor plan window?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176061#M6746</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Is there a way to handle mouse click events from the ArchiCAD Floor plan window in an Add-on? I need to know the exact cursor coordinates when user clicks somewhere on a selected element in the Floor plan window.&lt;BR /&gt;&lt;BR /&gt;Is it possible? Thank you!&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 11:41:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176061#M6746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T11:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle a mouse click in the Floor plan window?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176062#M6747</link>
      <description>&lt;BLOCKQUOTE&gt;EzPresso wrote:&lt;BR /&gt;Is there a way to handle mouse click events from the ArchiCAD Floor plan window in an Add-on? I need to know the exact cursor coordinates when user clicks somewhere on a selected element in the Floor plan window. Is it possible? &lt;/BLOCKQUOTE&gt;
Is your add-on prompting the user to click on an element first, i.e. is the add-on active when you want to capture the clicked point? Or do you want to respond to the user selecting an element at any time?</description>
      <pubDate>Wed, 26 Aug 2009 14:52:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176062#M6747</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-08-26T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle a mouse click in the Floor plan window?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176063#M6748</link>
      <description>Dear Ralph, thank you for asking!&lt;BR /&gt;
&lt;BR /&gt;
My add-on is active, it implements the &lt;B&gt;ACAPI_Notify_CatchSelectionChange&lt;/B&gt; callback function. I need to determine the exact coordinates where the user has clicked on my library part based element which he/she selected first.&lt;BR /&gt;
&lt;BR /&gt;
I need to implement regular ArchiCAD behavior, as with standard elements like slabs or hatches. In ArchiCAD you need to select slab first, so the editable points appear on the edges. Then you click one of the points to edit it and so.&lt;BR /&gt;
&lt;BR /&gt;
I would like to implement the same behavior with my library part based objects. The user clicks an object first to select it. Then he clicks on some part of this object and my add-on needs to determine what part he has clicked to run the appropriate edit functionality.</description>
      <pubDate>Wed, 26 Aug 2009 18:20:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176063#M6748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-26T18:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle a mouse click in the Floor plan window?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176064#M6749</link>
      <description>&lt;BLOCKQUOTE&gt;EzPresso wrote:&lt;BR /&gt;The user clicks an object first to select it. Then he clicks on some part of this object and my add-on needs to determine what part he has clicked to run the appropriate edit functionality.&lt;/BLOCKQUOTE&gt;
OK - if I understand you correctly, your add-on traps a change in selection and then you want to prompt the user to click on a point on the selected object. Have you looked at using &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_Interface&lt;E&gt;&lt;/E&gt; 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;APIIo_GetPointID&lt;E&gt;&lt;/E&gt; to prompt the user to click on a point?</description>
      <pubDate>Wed, 26 Aug 2009 19:16:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176064#M6749</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-08-26T19:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle a mouse click in the Floor plan window?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176065#M6750</link>
      <description>&lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; No, this way the user will not be able to modify my objects using standard ArchiCAD tools, use libpart hotspots and so. I don't want to prompt the user to click on a point. I need to determine if the user clicks somewhere on my libpart object while this object is selected. And I need to do it in the background.&lt;BR /&gt;
&lt;BR /&gt;
May you imagine a 3m x 3m hatch element with an orientation vector?&lt;BR /&gt;
When I select this hatch element there are 6 black hotspots appear: 4 in element's corners and 2 in orientation vector's start and end points. If I click one of the orientation vector's hotspots then, I can drag this hotspot to another place.&lt;BR /&gt;
&lt;BR /&gt;
So the behavior I would like to achieve. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thank you for trying to help me!</description>
      <pubDate>Wed, 26 Aug 2009 19:47:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176065#M6750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-26T19:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle a mouse click in the Floor plan window?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176066#M6751</link>
      <description>&lt;BLOCKQUOTE&gt;EzPresso wrote:&lt;BR /&gt;May you imagine a 3m x 3m hatch element with an orientation vector?&lt;BR /&gt;
When I select this hatch element there are 6 black hotspots appear: 4 in element's corners and 2 in orientation vector's start and end points. If I click one of the orientation vector's hotspots then, I can drag this hotspot to another place.&lt;/BLOCKQUOTE&gt;
Wouldn't it be easier to do this with GDL? A wide variety of hotspot actions can be defined in the script.</description>
      <pubDate>Wed, 26 Aug 2009 21:47:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176066#M6751</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-08-26T21:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle a mouse click in the Floor plan window?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176067#M6752</link>
      <description>Yes in some cases. No if, for instance, I need to edit radius of an arc.</description>
      <pubDate>Wed, 26 Aug 2009 22:35:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176067#M6752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-26T22:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle a mouse click in the Floor plan window?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176068#M6753</link>
      <description>&lt;BLOCKQUOTE&gt;EzPresso wrote:&lt;BR /&gt;Yes in some cases. No if, for instance, I need to edit radius of an arc.&lt;/BLOCKQUOTE&gt;
Wouldn't that be a case of stretching a length, where the base hotspot is the centre of the arc and the moving part is on the circumference?</description>
      <pubDate>Wed, 26 Aug 2009 22:45:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176068#M6753</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-08-26T22:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle a mouse click in the Floor plan window?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176069#M6754</link>
      <description>Yes, that's the case.</description>
      <pubDate>Wed, 26 Aug 2009 23:11:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-handle-a-mouse-click-in-the-Floor-plan-window/m-p/176069#M6754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-26T23:11:02Z</dc:date>
    </item>
  </channel>
</rss>

