-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRevitLinkListNames.py
More file actions
24 lines (23 loc) · 830 Bytes
/
RevitLinkListNames.py
File metadata and controls
24 lines (23 loc) · 830 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
#========================================================================#
# _____ __
# \_ \__ _ _ __ \ \ __ _ _ __ ___ ___ ___
# / /\/ _` | '_ \ \ \/ _` | '_ ` _ \ / _ \/ __|
# /\/ /_| (_| | | | | /\_/ / (_| | | | | | | __/\__ \
# \____/ \__,_|_| |_| \___/ \__,_|_| |_| |_|\___||___/
#
#
# The Script lists the Revit Links alphabetically
# and reports the results to the user
#
# December 2018
#
#========================================================================#
theLinks = (
FilteredElementCollector(doc)
.OfCategory(BuiltInCategory.OST_RvtLinks)
.OrderBy(lambda n: Element.Name.GetValue(n))
)
for aLink in theLinks:
if RevitLinkInstance == type(aLink):
data = Element.Name.GetValue(aLink).split(':')
print data[0]