Share

LinkElementId Class

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.3.0.0 (25.3.0.0)

Syntax

C#

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.

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.

Methods

 NameDescription
Public methodEquals Determines whether the specified Object is equal to the current Object.
(Overrides Object.Equals(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)

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.

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

Reference

Was this information helpful?