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[0] with my background opened document as IN[0] but it doesn’t seem to work.
I have not tried what you are asking but I think it will work with the nodes from BIMorph Package. I have used them quite extensively for getting linked elements just not for a link within a link.
Thank you for the answer although I still do not understand.
GetLinkDocument () is a method for LinkInstances not for LinkTypes.
I thought I could learn something new
@Alban_de_Chasteigner thanks for correcting me! I suppose I may have gotten a little too reliant on autocomplete in Visual Studio! But hey, still solved the question right!