Returns the existing entity corresponding to the Schema if it has been saved in the
Element, or an invalid entity otherwise.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public Entity GetEntity(
Schema schema
)
Parameters
- schema Schema
-
The Schema describing the Entity.
Return Value
Entity
The returned Entity.
Exceptions
Remarks
The Entity that is returned is a copy of the stored data (with copy-on-write
optimization). Modifying it is allowed (even with restricted write), but to save your
changes you must call SetEntity.
See Also
Reference