Skip to content

Commit

Permalink
cleaned up comments and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Mar 3, 2016
1 parent 24193b7 commit 1f358b3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
25 changes: 14 additions & 11 deletions TrackChangesCloud/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ static void SetFocusToRevit()
#endregion // SetFocusToRevit

/// <summary>
/// Repeatedly check database status and raise
/// external event when updates are pending.
/// Relinquish control and wait for timeout
/// period between each attempt. Run in a
/// separate thread.
/// Trigger a modification tracker snapshot at
/// regular intervals. Relinquish control and wait
/// for the specified timeout period between each
/// snapshot. This method runs in a separate thread.
/// </summary>
static void TriggerModificationLogger()
{
Expand All @@ -94,9 +93,10 @@ static void TriggerModificationLogger()
_event.Raise();

// Set focus to Revit for a moment.
// Otherwise, it may take a while before
// Revit forwards the event Raise to the
// event handler Execute method.
// Without this, Revit will not forward the
// event Raise to the external event handler
// Execute method until the Revit window is
// activated. This causes the screen to flash.

SetFocusToRevit();

Expand All @@ -119,14 +119,17 @@ void OnApplicationInitialized(
object sender,
ApplicationInitializedEventArgs e )
{
// Create our custom external event.

_event = ExternalEvent.Create(
new ModificationLogger() );

_thread = new Thread(
TriggerModificationLogger );
// Start a thread to raise it regularly.

_thread.Start();
_thread = new Thread(
TriggerModificationLogger );

_thread.Start();
}

public Result OnShutdown( UIControlledApplication a )
Expand Down
6 changes: 3 additions & 3 deletions TrackChangesCloud/TrackChangesCloud.addin
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
<AddIn Type="Command">
<Text>Command TrackChangesCloud</Text>
<Description>Some description for TrackChangesCloud</Description>
<Text>Track Changes</Text>
<Description>This command toogles between starting and ending modification tracking</Description>
<Assembly>TrackChangesCloud.dll</Assembly>
<FullClassName>TrackChangesCloud.Command</FullClassName>
<ClientId>93bba244-ca4b-42ea-8d6f-ec3f5c095c2e</ClientId>
<VendorId>com.typepad.thebuildingcoder</VendorId>
<VendorDescription>The Building Coder, http://thebuildingcoder.typepad.com</VendorDescription>
</AddIn>
<AddIn Type="Application">
<Name>Application TrackChangesCloud</Name>
<Name>TrackChangesCloud</Name>
<Assembly>TrackChangesCloud.dll</Assembly>
<FullClassName>TrackChangesCloud.App</FullClassName>
<ClientId>5653591b-6c44-4346-b1d0-5bdb78f5bbd3</ClientId>
Expand Down

0 comments on commit 1f358b3

Please sign in to comment.