2022 Property
Changes 8
P

IndependentTag.TaggedElementId

Description:
The LinkElementId of the tagged element, if any. If the tag is tagged on a subelement of linked element, it returns the LinkElementId of the element.
Remarks:
The ID of the tagged element. If there is no tagged element because the tag IsOrphaned then LinkElementId.HostElementId, LinkElementId.LinkElementId and LinkElementId.LinkInstanceId will be InvalidElementId.
[ObsoleteAttribute("This property is deprecated in Revit 2022 and will be removed in a later version of Revit. We suggest you use the `GetTaggedElementIds()` method instead.")]
public LinkElementId TaggedElementId { get; }