LinkElementId Class

LinkElementId represents an element in a linked document.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBLinkElementId

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
 NameDescription
Public methodLinkElementId(ElementId) Creates a new LinkElementId representing an element in the host document.
Public methodLinkElementId(ElementId, ElementId) Creates a new LinkElementId representing an element in a linked document.
Top
Properties
 NameDescription
Public propertyHostElementId The id of the element in the host, or invalidElementId if there is a link.
Public propertyLinkedElementId The id of the element in the link, or invalidElementId if no link.
Public propertyLinkInstanceId The id of the link, or invalidElementId if no link.
Top
Methods
 NameDescription
Public methodEquals Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object))
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(LinkElementId, LinkElementId)Determines whether these two LinkElementIds are the same.
Public operatorStatic memberInequality(LinkElementId, LinkElementId)Determines whether these two LinkElementIds are different.
Top
Remarks
The id contains two element ids:
  1. The id of the linked model element in host document.
  2. The id of the element in the linked model document.
See Also