Creates a new Entity corresponding to the Schema of the specified GUID.
Namespace: Autodesk.Revit.DB.ExtensibleStorageAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic Entity(
Guid schemaGUID
)
Public Sub New (
schemaGUID As Guid
)
public:
Entity(
Guid schemaGUID
)
new :
schemaGUID : Guid -> Entity
Parameters
- schemaGUID Guid
-
Exceptions
Remarks
You can store the newly created Entity in an Element or in another Entity.
If you do not have write access to the Schema, an exception will be thrown.
If the GUID does not correspond to a known Schema, the Entity will be invalid
and an exception will be thrown.
See Also