You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extensions make working with the Revit API much easier and more intuitive. They add helpful methods that make your code cleaner, easier to understand, and simpler to maintain. Generics, nullable, everything here.
14
+
Extensions make working with the Revit API much easier and more intuitive.
15
+
They add helpful methods that make your code cleaner, easier to understand, and simpler to maintain. Generics, nullable, everything here.
15
16
16
17
Instead of writing complex utility functions, you can use these extensions to write code in a natural, fluent way that focuses on what you actually want to do:
17
18
@@ -40,37 +41,38 @@ Package included by default in [Revit Templates](https://github.com/Nice3point/R
@@ -119,7 +121,7 @@ var canMirror = element.CanBeMirrored();
119
121
```
120
122
121
123
### Element association extensions
122
-
124
+
123
125
**IsAnalyticalElement** extension returns true if the element is an analytical element.
124
126
125
127
```csharp
@@ -133,15 +135,15 @@ var isPhysical = element.IsPhysicalElement();
133
135
```
134
136
135
137
### Element validation extensions
136
-
138
+
137
139
**CanDeleteElement** extension indicates whether an element can be deleted.
138
140
139
141
```csharp
140
142
varcanDelete=element.CanDeleteElement();
141
143
```
142
144
143
145
### Element worksharing extensions
144
-
146
+
145
147
**GetCheckoutStatus** extension gets the ownership status of an element.
146
148
147
149
```csharp
@@ -257,6 +259,7 @@ var copy = elementIds.CopyElements(document, new XYZ(1, 1, 1));
257
259
```
258
260
259
261
## Application extensions
262
+
260
263
### Ribbon Extensions
261
264
262
265
[Revit API Ribbon controls Guidelines](https://help.autodesk.com/view/RVT/2025/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Introduction_Add_In_Integration_Ribbon_Panels_and_Controls_html)
0 commit comments