-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathParameterTypes.py
More file actions
31 lines (25 loc) · 788 Bytes
/
ParameterTypes.py
File metadata and controls
31 lines (25 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Before running this script, select a Door family in the Model.
d = selection[0]
builtin = []
shared = []
others = []
pset = d.Parameters
print 'Analyzing ' + pset.Size.ToString() + ' parameters'
for p in pset:
print p.Definition.Name
if p.IsShared:
shared.append(p)
elif not p.Definition.BuiltInParameter == BuiltInParameter.INVALID:
builtin.append(p)
else:
others.append(p)
print 50 * '='
print 'Built In Parameters = ' + builtin.Count.ToString()
for p in builtin: print p.Definition.Name
print 50 * '-'
print 'Shared Parameters = ' + shared.Count.ToString()
for p in shared: print p.GUID.ToString() + '\t' + p.Definition.Name
print 50 * '-'
print 'Other Parameters = ' + others.Count.ToString()
for p in others: print p.Definition.Name
print 50 * '-'