Erases all Entities corresponding to this Schema from all open documents, and erases
this Schema from memory.
Namespace: Autodesk.Revit.DB.ExtensibleStorage
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since:
2012
Syntax
C# |
---|
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in the future version of Revit. To erase the schema and all its entities in one document, call document.EraseSchemaAndAllEntities().")]
public static void EraseSchemaAndAllEntities(
Schema schema,
bool overrideWriteAccessWithUserPermission
) |
Visual Basic |
---|
<ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in the future version of Revit. To erase the schema and all its entities in one document, call document.EraseSchemaAndAllEntities().")> _
Public Shared Sub EraseSchemaAndAllEntities ( _
schema As Schema, _
overrideWriteAccessWithUserPermission As Boolean _
) |
Visual C++ |
---|
[ObsoleteAttribute(L"This method is deprecated in Revit 2021 and may be removed in the future version of Revit. To erase the schema and all its entities in one document, call document.EraseSchemaAndAllEntities().")]
public:
static void EraseSchemaAndAllEntities(
Schema^ schema,
bool overrideWriteAccessWithUserPermission
) |
Parameters
- schema
- Type: Autodesk.Revit.DB.ExtensibleStorage..::..Schema
The Schema to erase.
- overrideWriteAccessWithUserPermission
- Type: System..::..Boolean
Normally, the usual write access controls apply to prevent deletion of Entities that
you don't have write permissions for. However, the user may choose to override the
controls. Set this flag to true only if the user gave explicit permission to destroy
the Schema.
Remarks
Exceptions
See Also