2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2009-08-25
07:48 PM
- last edited on
2023-08-03
01:41 PM
by
Doreena Deng
2009-08-26 04:52 PM
EzPresso wrote: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?
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?
2009-08-26 08:20 PM
2009-08-26 09:16 PM
EzPresso wrote: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
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.
2009-08-26 09:47 PM
2009-08-26 11:47 PM
EzPresso wrote:Wouldn't it be easier to do this with GDL? A wide variety of hotspot actions can be defined in the script.
May you imagine a 3m x 3m hatch element with an orientation vector?
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.
2009-08-27 12:35 AM
2009-08-27 12:45 AM
EzPresso wrote: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?
Yes in some cases. No if, for instance, I need to edit radius of an arc.
2009-08-27 01:11 AM