Changes in 2020 vs 2021 1 changed
Flip API Versions →Changed members
Schema.EraseSchemaAndAllEntities(Schema, Boolean)
Became obsolete in 2021: 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().
| schema | Schema | The Schema to erase. |
| overrideWriteAccessWithUserPermission | 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. |