This repository was archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Matteo Cominetti
committed
Jul 31, 2017
1 parent
3534a4a
commit 8586631
Showing
23 changed files
with
895 additions
and
529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,13 @@ private void OnOpenView(object sender, ExecutedRoutedEventArgs e) | |
return; | ||
UIDocument uidoc = uiapp.ActiveUIDocument; | ||
|
||
if (uidoc.ActiveView.ViewType == ViewType.Schedule) | ||
{ | ||
MessageBox.Show("BCFier can't take snapshots of schedules.", | ||
"Warning!", MessageBoxButton.OK, MessageBoxImage.Warning); | ||
return; | ||
} | ||
|
||
if (uidoc.ActiveView.ViewType == ViewType.ThreeD) | ||
{ | ||
var view3D = (View3D)uidoc.ActiveView; | ||
|
@@ -116,11 +123,11 @@ private void OnAddView(object sender, ExecutedRoutedEventArgs e) | |
//get filename | ||
UIDocument uidoc = uiapp.ActiveUIDocument; | ||
|
||
if(uidoc.Document.Title!=null) | ||
if (uidoc.Document.Title != null) | ||
issue.Header[0].Filename = uidoc.Document.Title; | ||
else | ||
issue.Header[0].Filename = "Unknown"; | ||
|
||
Bcfier.SelectedBcf().HasBeenSaved = false; | ||
} | ||
|
||
|
@@ -133,7 +140,7 @@ private void OnAddView(object sender, ExecutedRoutedEventArgs e) | |
#endregion | ||
|
||
#region private methods | ||
|
||
/// <summary> | ||
/// passing event to the user control | ||
/// </summary> | ||
|
@@ -153,6 +160,6 @@ private void RevitWindow_OnLoaded(object sender, RoutedEventArgs e) | |
StatHat.Post.EzCounter(@"[email protected]", "BCFierRevitStart", 1); | ||
}); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.