Get Documents - Archilab

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?

Hi @cmalloyWB5CB

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 

4 Likes

I think I am getting closer, but now I am stuck getting trying to get the rooms. Any advice?

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!