Preparing Microsoft Power BI
Looking back at our initial purpose, we would like to deliver a simple new functionality to enhance data collection without increasing any efforts by our Revit users. That's why we choose to take advantage of their daily activities by setting the software to listen at Synchronizations event to trigger Command 4 automatically. As soon as someone syncs their model with the central one, we will collect new data and deliver it to the Power BI service.
In our class MyExternalApplication.cs
, there is a pre-defined method named application_DocumentSynchronizingWithCentral
at line 33. This method has been added to the list of functionalities, and it will be triggered every time on document synchronization (line 20 of the same file).
Now that every configuration step has been completed, our flow works better, but our puzzle still needs one last piece. We have to set up the web service on which our plugin should collect and send data.
To get started...