Apply Attachment Reference Type to Revit Links


#1

Hi all, i’m quite new to Dynamo community, so my experience isn’t that much.
I’ll explain my situation: I have to link thousands of files to other thousand of files and those files have to be linked with Attachment Reference Type and Relative path Type. Relative is seted through AddLink Node, but I could’t reach to Reference Type. Exploring Revit API docs, i saw something like RevitLink Attachment Properties, but i don’t have enough knowledge to apply those codes into Python.

I searched the forum for a solution and didn’t find any. Actually my graph does what i want it to do except Reference Type (thanks to all knowledge shared here), Reads excel file, and brings exactly the document i want to link.

Thank you very much for your attention,

Mark


#2

I am not sure what nodes you are using there, but you can add the AttachmentType to the created link like so:

image

Python code:

Result:


#3

Hi Konrad_K_Sobon, thank you very much for your answer, it’s working perfectly for my graph.

To add some more info nodes i’m using are: Doc.AddLink from Clockwork package and ReadExcel from Hot Gear package, other are core nodes. And there is some warnings in the traceback box, and i don’t know if this matters, either if it works or not. I share with u the pick.

In any case, thank you very much

Mark