Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Developer,
Although new schema delete API has been replaced, but I can't use this new API for Revit 2022, is there anything wrong? when i use the old function Schema.EraseSchemaAndAllEntities(item.Schema, true), everything works
#if REVIT_2018 || REVIT_2019 || REVIT_2020 || REVIT_2021 || REVIT_2022
Schema.EraseSchemaAndAllEntities(item.Schema, true);
#else
DB.Doc.EraseSchemaAndAllEntities(item.Schema);
#endif
Chuong Ho
Solved! Go to Solution.