cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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'