From 65b3935176a4dea82f276c560e4d5b93fb4477ae Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Wed, 27 Mar 2024 15:58:56 -0300 Subject: [PATCH] Update readme --- README.md | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/README.md b/README.md index fac130e..33dc5e6 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,18 @@ Convert `RevitVersion` property to `DefineConstants` with version `2017` to `202 ``` +RevitVersion | Define | Define with or-greater +-------------|--------|------------------------------- +`2017`| `REVIT2017` | `REVIT2017_OR_GREATER` +`2018`| `REVIT2018` | `REVIT2018_OR_GREATER`, `REVIT2017_OR_GREATER` +`2019`| `REVIT2019` | `REVIT2019_OR_GREATER`, `REVIT2018_OR_GREATER`, `REVIT2017_OR_GREATER` +`2020`| `REVIT2020` | `REVIT2020_OR_GREATER`, `REVIT2019_OR_GREATER`, `REVIT2018_OR_GREATER`, `REVIT2017_OR_GREATER` +`2021`| `REVIT2021` | `REVIT2021_OR_GREATER`, `REVIT2020_OR_GREATER`, `REVIT2019_OR_GREATER`, `REVIT2018_OR_GREATER`, `REVIT2017_OR_GREATER` +`2022`| `REVIT2022` | `REVIT2022_OR_GREATER`, `REVIT2021_OR_GREATER`, `REVIT2020_OR_GREATER`, `REVIT2019_OR_GREATER`, `REVIT2018_OR_GREATER`, `REVIT2017_OR_GREATER` +`2023`| `REVIT2023` | `REVIT2023_OR_GREATER`, `REVIT2022_OR_GREATER`, `REVIT2021_OR_GREATER`, `REVIT2020_OR_GREATER`, `REVIT2019_OR_GREATER`, `REVIT2018_OR_GREATER`, `REVIT2017_OR_GREATER` +`2024`| `REVIT2024` | `REVIT2024_OR_GREATER`, `REVIT2023_OR_GREATER`, `REVIT2022_OR_GREATER`, `REVIT2021_OR_GREATER`, `REVIT2020_OR_GREATER`, `REVIT2019_OR_GREATER`, `REVIT2018_OR_GREATER`, `REVIT2017_OR_GREATER` +`2025`| `REVIT2025` | `REVIT2025_OR_GREATER`, `REVIT2024_OR_GREATER`, `REVIT2023_OR_GREATER`, `REVIT2022_OR_GREATER`, `REVIT2021_OR_GREATER`, `REVIT2020_OR_GREATER`, `REVIT2019_OR_GREATER`, `REVIT2018_OR_GREATER`, `REVIT2017_OR_GREATER` + ## Example ### RevitVersion 2024 @@ -32,6 +44,68 @@ Generate `DefineConstants`: ``` +### Sample +```csharp +public class Revit +{ +#if REVIT2025 + public class Revit2025 { } +#endif +#if REVIT2024 + public class Revit2024 { } +#endif +#if REVIT2023 + public class Revit2023 { } +#endif +#if REVIT2022 + public class Revit2022 { } +#endif +#if REVIT2021 + public class Revit2021 { } +#endif +#if REVIT2020 + public class Revit2020 { } +#endif +#if REVIT2019 + public class Revit2019 { } +#endif +#if REVIT2018 + public class Revit2018 { } +#endif +#if REVIT2017 + public class Revit2017 { } +#endif + +#if REVIT2025_OR_GREATER + public class Revit2025OrGreater { } +#endif +#if REVIT2024_OR_GREATER + public class Revit2024OrGreater { } +#endif +#if REVIT2023_OR_GREATER + public class Revit2023OrGreater { } +#endif +#if REVIT2022_OR_GREATER + public class Revit2022OrGreater { } +#endif +#if REVIT2021_OR_GREATER + public class Revit2021OrGreater { } +#endif +#if REVIT2020_OR_GREATER + public class Revit2020OrGreater { } +#endif +#if REVIT2019_OR_GREATER + public class Revit2019OrGreater { } +#endif +#if REVIT2018_OR_GREATER + public class Revit2018OrGreater { } +#endif +#if REVIT2017_OR_GREATER + public class Revit2017OrGreater { } +#endif +} +``` + ## License