We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

ACAPI_Element_AttachObserver, notifyFlags

BenjiDev
Enthusiast

ACAPI_Element_AttachObserver takes an argument "notifyFlags".

I can't find any example addon (under the devkit folder) using this argument.

From the documentation:

"notifyFlags[in] Defines the behavior of the attached observer in certain database operations."

A bit vauge in my opinion. 

Where can i find more informaition about these flags?

Whats the behavior and which database operations are they are talking about.

 

 

3 REPLIES 3
julienK
Advocate

As I understand it you don't set this argument yourself. It is used by APIElementEventHandlerProc to tell which  event is happening to the attached element.

A value is already assigned to it so you don't have to do anything

https://archicadapi.graphisoft.com/documentation/apielementeventhandlerproc

https://archicadapi.graphisoft.com/documentation/api_notifyelementtype

https://archicadapi.graphisoft.com/documentation/api_elementdbeventid

 

You can see it used in the notification manager exemple of the api > element_observer.cpp

 

 

 

 

I think you are confusing 'notifyFlags' with 'API_​ElementDBEventID'

 

I think you are confusing 'notifyFlags' with 'API_​ElementDBEventID'