I know I can test if the document title is contained in the name of the LinkInstance like this:
but is there a more direct and safe way?
Solved! Go to Solution.
Solved! by FRFR1426. See the answer in context.
Ok, I've found it. Simply use GetTypeId:
var linkType = (RevitLinkType)document.GetElement(linkInstance.GetTypeId());
Access a broad range of knowledge to help get the most out of your products and services.