File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 mi = selection [0 ]
55 for pc in mi .PropertyCategories :
66 print ('\n ' )
7- print ('Display Name: {} Internal Name: {}' .format (pc .DisplayName , pc .Name ))
8- print ('\t Properties' )
7+ print ('Property Category: {} ({})' .format (pc .DisplayName , pc .Name ))
98 for dp in pc .Properties :
10- print ('\t Display Name: {} Internal Name: {}' .format (dp .DisplayName , dp .Name ))
119 if dp .Value .IsDisplayString :
12- print ( ' \t \t [Value]: {}' . format ( dp .Value .ToString ()) )
10+ value = dp .Value .ToString ()
1311 elif dp .Value .IsDateTime :
14- print ( ' \t \t [Value]: {}' . format ( dp .Value .ToDateTime ().ToShortTimeString ()) )
12+ value = dp .Value .ToDateTime ().ToShortTimeString ()
1513 else :
16- print ('\t \t [Value]: {}' .format (dp .Value .ToString ()))
14+ value = dp .Value .ToString ()
15+
16+ print ('\t {} ({}): {}' .format (dp .DisplayName , dp .Name , value ))
You can’t perform that action at this time.
0 commit comments