Revit 2025.3 API
Instance |
Add a cut to an element using the unattached voids inside a cutting instance.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static void AddInstanceVoidCut( Document document, Element element, Element cuttingInstance )
Public Shared Sub AddInstanceVoidCut ( document As Document, element As Element, cuttingInstance As Element )
public: static void AddInstanceVoidCut( Document^ document, Element^ element, Element^ cuttingInstance )
static member AddInstanceVoidCut : document : Document * element : Element * cuttingInstance : Element -> unit
Parameters
| Exception | Condition |
|---|---|
| ArgumentException | The element cannot be cut with a void instance. -or- The element is not a family instance with an unattached void that can cut. |
| ArgumentNullException | A non-optional argument was null |
| ForbiddenForDynamicUpdateException | This method may not be called during dynamic update. |
| InvalidOperationException | Failed to cut element with the instances |
See Also