Before getting technical, let me mention that I had a great time with Markus and Wolfgang on ski tours climbing a couple of mountains around the Gemmipass last weekend:
Back to the technical stuff.
I implemented a batch upload functionality for the FireRatingCloud C# .NET Revit API add-in REST API MongoDB client over a month ago, in Madrid, during the BIM Programming workshop, together with Jose Ignacio Montes of Avatar BIM, who shared his solution for modelling small details in Revit.
Jose had noted that uploading the data for all doors in a large building model to the cloud database consumed a significant amount of time, whereas downloading the modified data for the same doors is almost instantaneous.
This is completely obvious, once you come to think of it, since the original upload functionality uses an individual EST API call for each door element, whereas the download uses one single batch call for the entire set.
There is a god reason for the individual calls to upload the data: I wished to create new database records for doors not yet represented in the database, and update the existing records for all others.
I spent quite a
while implementing and optimising my upsert
method to
achieve just that.
Unfortunately, I do not see any possibility to implement a batch upsert functionality to MongoDB.
On the other hand, making thousands of individual REST API calls for a large Revit model is a completely ridiculous thought.
Here is the list of enhancement made since I last discussed this project, with the corresponding GitHub project releases:
In case you are wondering about the new FireRatingClient
module, suffice to say it is a very cool simple little Windows forms executable to demonstrate ubiquitous BIM data access and editing with immediate upload back to the cloud and back to the original BIM model.
More on that anon.
I am off to my Vipassana meditation retreat now, so more on all this when I return.