Access information from linked file

Hi,

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)
collector.OfCategory(BuiltInCategory.OST_RvtLinks).WhereElementIsNotElementType()
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 (https://aecuandme.wordpress.com/) and I try to access to all the revit.documents using:

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

from (AEC, you and me.: Image)

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:

http://dynamobim.com/forums/topic/steamnodes-getfromlinkedfile-need-help/

Have you tried the “Get Documents” from the archi-lab.net package collection?