2021 Members
Changes 4
M

ExternalResourceReference

Name Return Type Description Inherited From
M CreateLocalResource(Document, ExternalResourceType, ModelPath, PathType) ExternalResourceReference Creates an ExternalResourceReference representing a local file managed by Revit's built-in server.
M Dispose() None Releases all resources used by the ExternalResourceReference
M Equals None (Inherited from Object .) Object .
M GetHashCode None (Inherited from Object .) Object .
M GetReferenceInformation() IDictionary Returns a copy of an object containing previously-stored reference or lookup information about the specific resource provided by the server.
M GetResourceShortDisplayName() string Gets the short display name of the external resource.
M GetResourceVersionStatus() ResourceVersionStatus Checks whether this ExternalResourceReference corresponds to the current version of the resource.
M GetType None (Inherited from Object .) Object .
M HasValidDisplayPath() bool Checks whether this external Resource has a valid display path.
M IsValidReference(ExternalResourceType) bool Checks whether the reference is in a valid format.
M ToString None (Inherited from Object .) Object .
Name Return Type Description Inherited From
P InSessionPath string The path stores the full display path which includes the server name plus the path provided by ExternalResourceServer. The path that Revit will present for user recognizing and browsing to this resource during one session of Revit. This property allows ExternalResourceServers to handle cases where the path to a resource may vary between Revit sessions. For example, if this ExternalResourceReference refers to a resource in a folder, this property can be used to store the current path of the resource. If the resource is moved to another folder later, the ExternalResourceServer could calculate the correct path for the resource from resource identification information when it is loaded and store it in this property, so that it will work correctly even if the rvt file is opened in a different location. Do not rely on this path to look up an ExternalResourceReference, as the path is neither unique nor stable. It isn't unique because multiple servers might use the same server name and display name format. It isn't stable because some servers allow renaming, and because a server might change its name at some point.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P ServerId Guid The id of the server that Revit is expecting to provide the external resource.
P Version string The version of the external data that was most recently loaded in Revit.