Using the Revit API, I have been trying to determine, whether a linked RVT file or an imported DWG file has a relative or absolute path. This information is displayed in the Manage Links dialog, but how can we access this information via the API?
In the Revit API (since Revit 2012), we have the following APIs to help with this exact requirement -
PathType : The path type of the link (relative, absolute, or server).
GetPath() : Gets the path of the link, relative or absolute according to the link's settings