We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-05-25 08:02 PM
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.
2023-05-26 07:29 AM
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
2023-05-27 11:20 PM
I think you are confusing 'notifyFlags' with 'API_ElementDBEventID'
2023-05-27 11:21 PM
I think you are confusing 'notifyFlags' with 'API_ElementDBEventID'