Skip to content

Commit 49b1856

Browse files
committed
updated sample script
added sample gif
1 parent 91fdaac commit 49b1856

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Images/example.gif

1.72 MB
Loading

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# NavisPythonShell
22

3+
![example](/Images/example.gif)
4+
35
This is obviously a fork of [RevitPythonShell](https://github.com/architecture-building-systems/revitpythonshell), bringing an IronPython interpreter to Autodesk Navisworks, and it would not be possible without the great work of everyone involved with the RPS project. It's still pretty rough around the edges and provides only basic functionality at this time. I'm sharing my work so far, in the hopes that together we can expand it further.
46

57
The NavisPythonShell (NPS) ~lets you to write plugins for Navisworks in Python,~ provides you with an interactive shell that lets you see the results of your code *as you type it*. This is great for exploring the Navis API.

Script Examples/listProperties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from npw import doc, selection
1+
selection = doc.CurrentSelection.SelectedItems
22

3-
if selection.Count > 0:
3+
if any(selection):
44
mi = selection[0]
55
for pc in mi.PropertyCategories:
66
print('\n')

0 commit comments

Comments
 (0)