Skip to content

Commit 511cb7a

Browse files
committed
added and tested changes suggested by devloai bot
1 parent 9f37bb6 commit 511cb7a

File tree

1 file changed

+1
-3
lines changed
  • extensions/pyRevitTools.extension/pyRevit.tab/Modify.panel/3D.pulldown/Orient Section Box To Face.pushbutton

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pyrevit import revit, DB, UI
55
from pyrevit import forms
66

7-
import Autodesk.Revit.UI.Selection.ObjectType
7+
from Autodesk.Revit.UI.Selection import ObjectType
88

99
curview = revit.active_view
1010

@@ -16,8 +16,6 @@ def orientsectionbox(view):
1616
UI.Selection.ObjectType.Face, "Pick a face to align to:"
1717
)
1818

19-
revit.pick_face
20-
2119
# Get the section box
2220
box = view.GetSectionBox()
2321

0 commit comments

Comments
 (0)