cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Tamas Polyak
Graphisoft
Graphisoft

LibraryManager::FindLibraries recommended instead of ACAPI_LibraryManagement_GetLibraries

Dear Developers,

 

Recently we got feedback about a substantial slowdown in case of having multiple addons that use the deprecated ACAPI_LibraryManagement_GetLibraries in BIM Cloud projects using many libraries, like in case of the Global library.

 

It fills an array of API_LibraryInfo structures, and fills the bool readOnly member for each. At this point it's costly because it builds a connection to the appropriate BIM Cloud server, asks for permissions. In case of many addons doing this in succession it can take a lot of time.

 

If you only want to enumerate the loaded libraries and treat them as read only, we recommend instead the ACAPI::Library::LibraryManager::FindLibraries function that returns an array of ACAPI::Library::Library objects. It contains all the relevant information, except for the readOnly flag.

 

If you need to modify the contents of a BIM Cloud library from within a joined project via an addon, unfortunately there's no workaround yet.

 

Best regards,

Tamás

0 Replies 0

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!