LinkElementId
LinkElementId represents an element in a linked document.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.LinkElementId
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class LinkElementId
The LinkElementId type exposes the following members.
Constructors
Name
Description
Public Method
LinkElementId(ElementId)
Creates a new LinkElementId representing an element in the host document.
Public Method
LinkElementId(ElementId, ElementId)
Creates a new LinkElementId representing an element in a linked document.
Properties
Name
Description
Public Property
HostElementId
The id of the element in the host, or invalidElementId if there is a link.
Public Property
LinkedElementId
The id of the element in the link, or invalidElementId if no link.
Public Property
LinkInstanceId
The id of the link, or invalidElementId if no link.
Methods
Name
Description
Public Method
Equals
Determines whether the specified Object is equal to the current Object.
(Overrides Object.Equals(Object))
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Operators
Name
Description
Public Operator
Static Member
Equality(LinkElementId, LinkElementId)
Determines whether these two LinkElementIds are the same.
Public Operator
Static Member
Inequality(LinkElementId, LinkElementId)
Determines whether these two LinkElementIds are different.
Remarks
The id contains two element ids:
- The id of the linked model element in host document.
- The id of the element in the linked model document.