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?
Go to Solution.
Ok, I've found it. Simply use GetTypeId:
var linkType = (RevitLinkType)document.GetElement(linkInstance.GetTypeId());
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.