File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 1+ from npw import doc , selection
2+
3+ if selection .Count > 0 :
4+ mi = selection [0 ]
5+ for pc in mi .PropertyCategories :
6+ print ('\n ' )
7+ print ('Display Name: {} Internal Name: {}' .format (pc .DisplayName , pc .Name ))
8+ print ('\t Properties' )
9+ for dp in pc .Properties :
10+ print ('\t Display Name: {} Internal Name: {}' .format (dp .DisplayName , dp .Name ))
11+ if dp .Value .IsDisplayString :
12+ print ('\t \t [Value]: {}' .format (dp .Value .ToString ()))
13+ elif dp .Value .IsDateTime :
14+ print ('\t \t [Value]: {}' .format (dp .Value .ToDateTime ().ToShortTimeString ()))
15+ else :
16+ print ('\t \t [Value]: {}' .format (dp .Value .ToString ()))
Original file line number Diff line number Diff line change 1+ import clr
2+ clr .AddReference ('Autodesk.Navisworks.Api' )
3+ import Autodesk .Navisworks .Api as API
4+
5+
6+ doc = API .Application .ActiveDocument
7+ selection = doc .CurrentSelection .SelectedItems
You can’t perform that action at this time.
0 commit comments