Hello,
i stuck, i think it is just a small error.
# π― GET Linked Elements
collector = FilteredElementCollector(doc).OfClass(ImportInstance).ToElements()
print("\n Es sind {} dwgs im Projekt.".format(len(collector)))
# Get instance properties
cadLnk = []
cadLnkType = []
cadLnkView = []
for i in collector:
try:
if i.IsLinked == True:
cadLnk.append(i)
cadLnkType.append(i.Document.GetElement(i.GetTypeId()))
cadLnkView.append(doc.GetElement(i.OwnerViewId))
except:
pass
# Sorting and displaying the table
table=[list(record) for record in zip(cadLnk, cadLnkType, cadLnkView)]
out.print_table(table, ["Id","Name","Ansicht"])
# Script Duration
out.print_md("---")
out.print_md("---")
For any reason, all my collumns remain empty. when i just simple print my variables they have the values
KR
Andreas