Skip to content

Commit 9fbfa34

Browse files
committed
add app to execute console
1 parent 0594a6a commit 9fbfa34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

NavisPythonShell/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# these commands get executed in the current scope
22
# of each new shell (but not for canned commands)
33
from Autodesk.Navisworks.Api import *
4-
5-
doc = Application.ActiveDocument
4+
app = Application
5+
doc = app.ActiveDocument
66
selection = doc.CurrentSelection.SelectedItems
77

88
def quit():

0 commit comments

Comments
 (0)