How chrisbishop/revittemplates works
This repository provides Revit add-in project templates, not a single feature-complete add-in. The principal generated workflow is Revit loading the application, which registers a ribbon command; that command can open a modal or modeless MVVM view, show a task dialog, or resolve a view through the optional host. The tree also contains a multi-version installer generator. The source uses conditional template variants, so some paths are alternatives rather than one combined runtime. Other README capabilities are documented but their implementation paths are not present in the supplied tree.
Main entry points: Application.cs Application entry · StartupCommand.cs Command entry · Nice3point.Revit.AddInView.xaml.cs WPF view · Installer.Generator.cs Installer generator
Components 12
Add-in lifecycle
- Application entry
source/Nice3point.Revit.AddIn/Application.cs - Application command
source/Nice3point.Revit.AddIn.Application/Commands/StartupCommand.cs
Command and UI
- Command entry
source/Nice3point.Revit.AddIn/Commands/StartupCommand.cs - View model
source/Nice3point.Revit.AddIn/ViewModels/Nice3point.Revit.AddInViewModel.cs - WPF view
source/Nice3point.Revit.AddIn/Views/Nice3point.Revit.AddInView.xaml.cs - Task dialog
source/Nice3point.Revit.AddIn/Commands/StartupCommand.cs
Optional hosting
- Service host
source/Nice3point.Revit.AddIn/Host.cs - Host options
source/Nice3point.Revit.AddIn/Config/Options/ApplicationOptions.cs
Installer
- Versioned files
- Installer generator
source/Nice3point.Revit.AddIn.Solution/install/Installer.Generator.cs - Installer entities
source/Nice3point.Revit.AddIn.Solution/install/Installer.Generator.cs
Other components
- Revit
Connections 10
- Revit → Application entry: loads
- Application entry → Service host: starts optionally
- Application entry → Command entry: registers ribbon command
- Application entry → Application command: alternative command type
- Command entry → Service host: resolves view optionally
- Command entry → WPF view: creates or shows
- Command entry → Task dialog: shows alternatively
- WPF view → View model: sets data context
- Versioned files → Installer generator: reads directories
- Installer generator → Installer entities: generates entities