Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Check If Synchronizing With Central

1 REPLY 1
SOLVED
Reply
Message 1 of 2
CruzExe
839 Views, 1 Reply

Check If Synchronizing With Central

Good Evening All,

 

I was wondering if any of you knew how to check if a model/document is being synchronized.

I want to be able to check if the document is being synchronized and prevent an action from occurring.

 

Example:

 

If(doc.isSynchronizing == true)

{

    //Do not add 1+1;

}

else

{

   //add 1+1

}

 

I have gone through the Revit API Docs, forums and google search and have been unable to find any references to this.

If you could assist me I would greatly appreciate it.

 

Sincerely,

Cruz

 

 

1 REPLY 1
Message 2 of 2
matthew_taylor
in reply to: CruzExe

Hi Cruz,

Take a look at this repository page:

https://github.com/jeremytammik/RevitLookup/blob/master/CS/EventTrack/Events/ApplicationEvents.cs

 

DocumentSynchronizingWithCentral is what you are after. Or perhaps DocumentSynchronizedWithCentral?


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community