cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

Request Teamworking Elements

Rob C
Contributor

Hi all,

 

A quick question from me: is it possible at all to request an element or lockable object set (something like the Location Settings) from another user using the API? Checking through the documentation and searching online there doesn't seem to be any mention of it, though I might've missed something. I can see there's a function for requesting AddOn objects, but it's limited to just those unfortunately.

 

Thanks,

Rob

3 REPLIES 3
Ralph Wessel
Mentor

Do you mean making reservations of elements, e.g. ACAPI_Teamwork_ReserveElements?

Ralph Wessel BArch
Software Engineer Speckle Systems
Rob C
Contributor

Essentially I'm looking for something similar to ACAPI_AddOnObject_RequestObjects() but for lockable object sets. Currently I'm using ACAPI_Teamwork_ReserveLockable to reserve the Location Settings, but if another user already owns that it just throws APIERR_SERVICEFAILED when I try to reserve it. I've seen that ACAPI_Teamwork_ReserveElements brings up a conflict dialogue for requesting elements, but this doesn't seem to be the case for lockable object sets.

Ralph Wessel
Mentor

I haven't tested this myself, but would the example project 'AddOnObject_Manager_ReserveInterface' do what you want? It seems to be leveraging the call 'ACAPI_RegisterTeamworkReserveInterface' to create an interface for reserving objects.

Ralph Wessel BArch
Software Engineer Speckle Systems