I am trying to get elements from a linked Revit file. I have downloaded Archilab to use the “Get Documents” node, but I can not find it.
Is this still available or is there an alternative way to do this?
I am trying to get elements from a linked Revit file. I have downloaded Archilab to use the “Get Documents” node, but I can not find it.
Is this still available or is there an alternative way to do this?
Which version of archi-lab did you install?
You can also get link Documents by using few lines of python:
import clr
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import*
clr.AddReference("RevitServices")
from RevitServices.Persistence import DocumentManager
doc=DocumentManager.Instance.CurrentDBDocument
link_inst=FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_RvtLinks).WhereElementIsNotElementType()
linkDoc, linkName = [], []
for i in link_inst:
linkDoc.append(i.GetLinkDocument())
linkName.append(i.Name)
OUT=link_inst,linkDoc,linkName
You’re feeding wrong inputs to LinkDoc. Use 1 index at List.GetItemAtIndex. 2 is for getting Link Name. Does that makes sense?
Thank you!