Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error With New API Schema Revit

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Chuong.Ho
516 Views, 3 Replies

Error With New API Schema Revit

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

EESignature

3 REPLIES 3
Message 2 of 4
RPTHOMAS108
in reply to: Chuong.Ho

Message 3 of 4
jeremy_tammik
in reply to: Chuong.Ho

Happy New Year to you both and many thanks to Richard for pointing out the existing thread raising a similar issue. Let's continue discussing the problem there.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 4 of 4
Chuong.Ho
in reply to: Chuong.Ho

Thanks so much, I will follow topic it, Happy New Year.

Chuong Ho

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report