Skip to content

Commit 74865be

Browse files
committed
use var in function instead of global one
1 parent e1cba79 commit 74865be

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
element,
3434
include_invisible=True,
3535
compute_references=True,
36-
detail_level=curview.DetailLevel
36+
detail_level=view.DetailLevel
3737
)
3838

3939
solids = [g for g in geom_objs if isinstance(g, DB.Solid) and g.Faces.Size > 0]

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
element,
3131
include_invisible=True,
3232
compute_references=True,
33-
detail_level=curview.DetailLevel
33+
detail_level=view.DetailLevel
3434
)
3535

3636
solids = [g for g in geom_objs if isinstance(g, DB.Solid) and g.Faces.Size > 0]

0 commit comments

Comments
 (0)