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.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!