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: 25.0.0.0 (25.0.0.0)
Syntaxpublic Entity GetEntity(
Schema schema
)
Public Function GetEntity (
schema As Schema
) As Entity
public:
Entity^ GetEntity(
Schema^ schema
)
member GetEntity :
schema : Schema -> Entity
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