Archicad C++ API
About Archicad add-on development using the C++ API.

How to catch element moving?

Anonymous
Not applicable
I need to catch notification when user move element. But I can not find such event in notification manager.

It's possible to catch element moving?


Thanks
3 REPLIES 3
Anonymous
Not applicable
Hi equilibrium,

I think you have to attach element observer.

This can be done in the initializing stage of your add-on by
ACAPI_Notify_InstallElementObserver

Ranga
Anonymous
Not applicable
Sorry, Ranga, but I cann't to catch simple element moving.
I was call ACAPI_Notify_InstallElementObserver in my Initialize function and register APIElementEventHandlerProc:

GSErrCode __ACENV_CALL ElementChangeEventNotifyHandler (const API_NotifyElementType *elemType)
{
	ACAPI_WriteReport("ElementChangeEvent", true);		
	return NoError;
}
I move "Wall" element, but not received notifications.
How I must catch it?

For example, I can change element and receive notification with APIDefaultsChangeHandlerProc (registered with ACAPI_Notify_CatchChangeDefaults).
Anonymous
Not applicable
Summary: How I can catch action when user select figure and move it to another place?