Skip to content

Commit ecedec8

Browse files
authored
Merge pull request #2829 from Wurschdhaud/fix-orient-detaillevel
Fix for orient view commands
2 parents ed805c7 + e9379be commit ecedec8

File tree

2 files changed

+2
-2
lines changed
  • extensions/pyRevitTools.extension/pyRevit.tab/Modify.panel/3D.pulldown

2 files changed

+2
-2
lines changed

extensions/pyRevitTools.extension/pyRevit.tab/Modify.panel/3D.pulldown/Orient Section Box To Face.pushbutton/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def orientsectionbox(view):
3333
options = DB.Options()
3434
options.ComputeReferences = True
3535
options.IncludeNonVisibleObjects = True
36-
options.DetailLevel = DB.ViewDetailLevel.Fine
36+
options.DetailLevel = curview.DetailLevel
3737

3838
geom_elem = element.get_Geometry(options)
3939

extensions/pyRevitTools.extension/pyRevit.tab/Modify.panel/3D.pulldown/Orient View To Face.pushbutton/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def reorient(view):
3030
options = DB.Options()
3131
options.ComputeReferences = True
3232
options.IncludeNonVisibleObjects = True
33-
options.DetailLevel = DB.ViewDetailLevel.Fine
33+
options.DetailLevel = curview.DetailLevel
3434

3535
geom_elem = element.get_Geometry(options)
3636

0 commit comments

Comments
 (0)