Access information from linked file



I am trying to access to some information of a linked files. I can access to the file instance by filtering the OST_RvtLink in python:

doc = DocumentManager.Instance.CurrentDBDocument

collector = FilteredElementCollector(doc)
famtypeiterator = collector.GetElementIdIterator()
famtypeiterator .Reset()
instances = []

for i in famtypeiterator:
insti = doc.GetElement(i)
instances .append(insti)

OUT = instances

but after this I cannot use the links as revit documents and pass that information to another filter in order to schedule elements.

If I use some definitions, such as SteamNodes from JBenoit ( and I try to access to all the revit.documents using:

<span style=“color: #75715e;”>x = Dynamo.Utilities.dynRevitSettings.Revit.Application.Documents</span>

from (

I get this error:

Warning: IronPythonEvaluator.
<wbr />EvaluateIronPythonScript operation failed. Traceback (most recent call last): File "<string>", line 54, in <module> AttributeError: attribute 'dynRevtiSettings' of 'namespace#' object is read-only

Any clue to solve this?

Many Thanks!!!




We discussed Julien’s workflow very recently right here:

Have you tried the “Get Documents” from the package collection?