Automatically sync with database

Automatically sync with database

anmh2
Contributor Contributor
622 Views
4 Replies
Message 1 of 5

Automatically sync with database

anmh2
Contributor
Contributor

Hello,

 

I want to know if I can automatically set time, for instance, every 2 hrs to sync Revit data with database or Excel sheet containing the updated data, noting that I already have the plugin for data integration but I want to make dynamic integration every 2 hrs. Many thanks.

0 Likes
623 Views
4 Replies
Replies (4)
Message 2 of 5

jeremy_tammik
Alumni
Alumni

There are many ways to achieve this.

 

You could use a Windows-driven timer to launch a new Revit session with a journal file, for instance.

 

You could have a Revit session running with an external event that is triggered by a Windows timer at the desired intervals.

 

There are many other approaches too.

 

I cannot tell which one will best suit your requirements.

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 5

ameer.mansourWAK8Y
Advocate
Advocate

you can check time interval and update data in Revit idling event.1.png

 
 

 

0 Likes
Message 4 of 5

jeremy_tammik
Alumni
Alumni

Thank you for the suggestion. Please note that the Idling event also can reduce performance, since Revit may call it very frequently, and there is no way to reduce the frequency of calls made by Revit. An external event will give you more control. Unfortunately, it is also slightly more complex to implement:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.28

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 5 of 5

BenoitE&A
Collaborator
Collaborator

Hey,

As usual the question how? has to be answered as well as the question why?

Why would you automatically update an external database while your guys are working? What if the work of one guy has consequences on the work of the other? Can you go back (which means create save files) if the work is wrong? Etc...

Just to be sure you thought about all the consequences before going into complicated matters.

Benoit


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes