C

Entity

Description:
An object stored in the Extensible Storage framework. An Entity is described by a Schema, which serves both to identify an Entity, and to describe its contents (Fields).
Remarks:
An Entity is similar to an object in most object-oriented languages, while a Schema is the class of that object. The Get and Set methods are central - they provide access to the fields of the Entity. Note that an unitialized Entity retrieved from an Element or another Entity (if it has not been created yet) will be represented as an invalid entity, not .a null reference (Nothing in Visual Basic). If an Element containing an Entity is split (e.g., a wall split), the Entity and its data will exist in both new Elements. If an Element containing an Entity is copied, the Element copy will also contain a copy of the Entity and its data. If an Entity stores an ElementId, and the Element with that ElementId is deleted, the stored ElementId will automatically be set to ElementId.InvalidElementId (-1).
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.ExtensibleStorage.Entity
public class Entity : IDisposable
Name Return Type Description
C Entity() None The default-constructed Entity is invalid.
C Entity(Entity) None Constructs a new copy of the input ESEntity object.
C Entity(Guid) None Creates a new Entity corresponding to the Schema of the specified GUID.
C Entity(Schema) None Creates a new Entity corresponding to the Schema.
Name Return Type Description
M Clear(Field) None Resets the field to its default value.
M Clear(String) None Resets the field to its default value.
M Dispose() None Releases all resources used by the
M Get``1(Field) FieldType Retrieves the value of the field in the entity.
M Get``1(Field, DisplayUnitType) FieldType Retrieves the value of the field in the entity.
M Get``1(Field, ForgeTypeId) FieldType Retrieves the value of the field in the entity.
M Get``1(String) FieldType Retrieves the value of the field in the entity.
M Get``1(String, DisplayUnitType) FieldType Retrieves the value of the field in the entity.
M Get``1(String, ForgeTypeId) FieldType Retrieves the value of the field in the entity.
M IsValid() bool Checks whether this Entity has a live Schema corresponding to it.
M ReadAccessGranted() bool Checks whether this Entity may be retrieved by the current add-in.
M RecognizedField(Field) bool Checks whether a Field belongs to the same Schema as this Entity.
M Set``1(Field, FieldType) Set Stores the value of the field in the entity.
M Set``1(Field, FieldType, DisplayUnitType) Set Stores the value of the field in the entity.
M Set``1(Field, FieldType, ForgeTypeId) Set Stores the value of the field in the entity.
M Set``1(String, FieldType) Set Stores the value of the field in the entity.
M Set``1(String, FieldType, DisplayUnitType) Set Stores the value of the field in the entity.
M Set``1(String, FieldType, ForgeTypeId) Set Stores the value of the field in the entity.
M WriteAccessGranted() bool Checks whether this Entity may be stored by the current add-in.
Name Return Type Description
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P SchemaGUID Guid The GUID of the Schema describing this Entity.
P Schema Schema The Schema describing this Entity.