cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Emkave
Enthusiast

Element deletion listener

Hello. Have somebody coded a method or function that gets executed every time an element or elements get deleted from Archicad project? 

For example I know there exists function: ACAPI_Element_CatchNewElement and ACAPI_Notify_CatchNewElement that accept function pointer to function that will be executed every time an element is created. 


Is there an opposite of that?

I'd be glad for the responses. Thank you in advance!

1 Solution

Accepted Solutions

ACAPI_Element_InstallElementObserver should suit your purposes. The type of action you want to observe is APINotifyElement_Delete. The API and documentation provide examples using this function. The only limitation is that you need to explicitly request a notification for a given element with ACAPI_Element_AttachObserver, i.e. the API won't notify you when an element is deleted if you haven't asked for it.

Ralph Wessel BArch
Central Innovation

Go to post

1 Reply 1

ACAPI_Element_InstallElementObserver should suit your purposes. The type of action you want to observe is APINotifyElement_Delete. The API and documentation provide examples using this function. The only limitation is that you need to explicitly request a notification for a given element with ACAPI_Element_AttachObserver, i.e. the API won't notify you when an element is deleted if you haven't asked for it.

Ralph Wessel BArch
Central Innovation

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!