Skip to content

Commit

Permalink
Hide section box by default when creating a view, only enabled it lat…
Browse files Browse the repository at this point in the history
…er if required
  • Loading branch information
GeorgDangl committed Jul 16, 2024
1 parent 77cf838 commit df99f6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/IPA.Bcfier.Revit/Services/RevitViewpointDisplayService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ public RevitViewpointDisplayService(UIDocument uiDocument)
{
orthoView.CropBoxActive = true;
orthoView.CropBoxVisible = true;
orthoView.IsSectionBoxActive = true;
}
else
{
orthoView.CropBoxActive = false;
orthoView.CropBoxVisible = false;
orthoView.IsSectionBoxActive = false;
}

trans.Commit();
Expand Down Expand Up @@ -140,11 +142,13 @@ public RevitViewpointDisplayService(UIDocument uiDocument)
{
perspView.CropBoxActive = true;
perspView.CropBoxVisible = true;
perspView.IsSectionBoxActive = true;
}
else
{
perspView.CropBoxActive = false;
perspView.CropBoxVisible = false;
perspView.IsSectionBoxActive = false;
}

trans.Commit();
Expand Down

0 comments on commit df99f6a

Please sign in to comment.