Application: SelectionChanged
Revit Platform: All
Revit Version: 2023.0
First Released For: 2023.0
Programming Language: C#
Skill Level: Beginning
Category: Basics
Type: ExternalApplication

Subject: SelectionChanged event
Summary: 
The sample implements IExternalApplication interface and subscribes SelectionChanged event in OnStartUp; the registered event handler will dump selected references related information to log files.

Classes: 
Autodesk.Revit.UI.IExternalApplication
Autodesk.Revit.ApplicationServices.ControlledApplication 
Autodesk.Revit.UI.Events.SelectionChangedEventArgs

Project Files: 
SelectionChanged.cs
This file contains one class SelectionChanged which implements IExternalApplication interface. 

LogManager.cs
This file contains one class LogManager in which one log file will be created for tracking event raise.

Instructions: 
1.	Copy the provided .addin file under sample folder to install folder of your Revit and specify full paths for dll. 
2.	Start Revit.
3.	Change selection and then refer to SelectionChanged.log.