I am trying to write a Dynamo graph to repath broken CAD links when our main project folder gets renamed. I have succesfully figured it out for Revit links by reading the file path and changing the old folder name to the new name and repathing it using the Orchid node. However, I am unable to get the path of the CAD links in the file to replace the folder so it is right. Does anyone have any ideas on how to go from the CAD Link (from Orchid’s Link.cadlink) to that filepath and then, after modifying the path, repathing the CAD link with it?
Possible using this RevitAPI method:
I was able to find a solution with Bimorph’s “ImportInstance.ReportInstances” and “ImportInstanceReport.Path”. That was able to get the import instance and the path. I bet they use that API method in the background.
1 Like