Skip to content

2025.0.2-preview.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
  • Context global handlers:
    • SuppressFailures: suppresses the display of the Revit error and warning messages during transaction.
      By default, Revit uses manual error resolution control with user interaction.
      This method provides automatic resolution of all failures without notifying the user or interrupting the program
    • SuppressDialogs: suppresses the display of the Revit dialogs
  • Context global properties:
    • IsRevitInApiMode: determines whether Revit is in API mode or not.
  • ExternalCommand class:
    • SuppressFailures is obsolete. Use Context class instead.
    • SuppressDialogs is obsolete. Use Context class instead.
  • ActionEventHandler now understands when it is in a Revit context and calls the handler immediately, without adding to the queue.
  • AsyncEventHandler now understands when it is in a Revit context and calls the handler immediately, without adding to the queue.
    Awaiting with await keyword will not cause a context switch, and you can still call API requests in the main Revit thread.
  • Nullable types support
  • Assembly load context internal optimizations
  • Readme updates, include extra samples

Full changelog: 2025.0.2-preview.1.0...2025.0.2-preview.2.0