Quick question, does anyone know how to get elements in a file linked to another document, not the one we are working in?
I have opened a doc in the background and got data from it, but some other data are in a file linked to this file. The nodes I am using for the first step obviously don’t work with the link file of a background opened doc. I have tried to copy the python scripts from custom nodes and change doc=DocumentManager.Instance.CurrentDBDocument wit doc=IN with my background opened document as IN but it doesn’t seem to work.
Does anyone have some ideas?
I tried to get the linked document like that:
Looks like the GetLinkDocument() method doesnt work here, I dont know why because link_docs give a RevitLinkInstance … (see also https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-method-for-nested-revit-link-returns-null/td-p/9263128)
And then used this node:
Hope you have any ideas ! Thanks !