Accessing Linked File Path Information using Revit .NET API

By Saikat Bhattacharya

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 


Comments

2 responses to “Accessing Linked File Path Information using Revit .NET API”

  1. can you pls give an example for that operation.

  2. i mean example for using GetPath() metod… im a junior cant even find my own palm in my hand
    (a point cloud example would be great)

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading