IsProductYearAtLeast
bool IsProductYearAtLeast(this Application app, int year)True if application product year is at least the specified value.
Parameters
- appApplication
The Revit application instance.
- yearint
The minimum product year to check.
Returns: True if the product year is greater than or equal to the specified year.
Example
Application app = commandData.Application.Application;if (app.IsProductYearAtLeast(2024)){ TaskDialog.Show("Version", "Using Revit 2024 or newer");}