LinkLoadContent
This class is used by IExternalResourceServers to return Link data to Revit when their LoadResource method is invoked. It also contains additional information used by IExternalResourceUIServers to display link load status results to the user.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.ExternalResourceLoadContent
Autodesk.Revit.DB.LinkLoadContent
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class LinkLoadContent : ExternalResourceLoadContent
The LinkLoadContent type exposes the following members.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from ExternalResourceLoadContent)
Public Property
LoadStatus
A value to indicate the status of an external resource load operation. IExternalResourceServers should set this in the LoadResource() method.
(Inherited from ExternalResourceLoadContent)
Public Property
Version
The version of the external data that the server is providing in this object.
(Inherited from ExternalResourceLoadContent)
Methods
Name
Description
Public Method
Dispose
(Inherited from ExternalResourceLoadContent)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetLinkDataPath
Returns the Link data path owned by this LinkLoadContent object.
Public Method
GetLinkLoadResult
Retrieves the LinkLoadResult of the attempt to load or reload a Revit link.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
SetLinkDataPath
Sets the Link data path owned by this LinkLoadContent object.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
This class handles Revit links.
Revit links must be loaded from a path accessible to Revit. Server implementors should provide Revit with a ModelPath representing a location from which to load the link. Revit will handle the actual file loading.
Servers which represent non-local file locations will need to create their own implementation for copying or moving files to a Revit-accessible location.
The link data path used for link loading may be different from the path displayed to the user. The link data path represents the literal location of the file, whereas the link’s display path represents what the user sees as the name of the link. See [!:Autodesk::Revit::DB::ExternalResourceReference::InSessionPath] for more details on display paths.