Pyrevit Forms New! Guide

forms.alert("Operation completed successfully.", title="Info")

Integrate validation callbacks:

| Practice | Rationale | |----------|-----------| | – one task per dialog | Reduces user error | | Provide defaults | Speeds repetitive tasks | | Validate early | Prevents API exceptions | | Use progress bars for >2s operations | Manages user expectations | | Make dialogs cancellable | Allows graceful exit | | Match Revit terminology | Familiarity & consistency | | Test with high DPI scaling | Ensures readability | pyrevit forms

: A standard form for selecting one or more items from a list. It can handle simple strings or complex Revit objects by specifying a name_attr to display. forms.alert("Operation completed successfully."