Revit 2025.3 API
ElementPinned Property |
Identifies if the element has been pinned to prevent changes.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public bool Pinned { get; set; }
Public Property Pinned As Boolean Get Set
public: property bool Pinned { bool get (); void set (bool value); }
member Pinned : bool with get, set
Property Value
Boolean
Exception | Condition |
---|---|
InvalidOperationException | When setting this property: Element cannot be pinned or unpinned. |

An element which is pinned may not be moved, and warnings will be issued
when an attempt is made to delete it.
See Also