Skip to content

Commit

Permalink
access Revit application via sender argument to ApplicationInitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremytammik committed Sep 26, 2018
1 parent bd67e83 commit c45be79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CS/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ StairsAutomationUtility utility
}

void OnApplicationInitialized(
object sender, ApplicationInitializedEventArgs e )
object sender,
ApplicationInitializedEventArgs e )
{
// Sender is an Application instance:

Expand All @@ -72,7 +73,6 @@ StairsAutomationUtility utility
throw new InvalidOperationException(
"Could not open document." );
}

Execute( doc );
}

Expand Down

0 comments on commit c45be79

Please sign in to comment.