Revit 2025 API
Structural |
Removes one or more subelements from a StructuralConnectionHandlerType. The subelements will be erased.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static void RemoveMainSubelementsFromCustomConnection( StructuralConnectionHandler structuralConnectionHandler, IList<Subelement> subelements )
Public Shared Sub RemoveMainSubelementsFromCustomConnection ( structuralConnectionHandler As StructuralConnectionHandler, subelements As IList(Of Subelement) )
public: static void RemoveMainSubelementsFromCustomConnection( StructuralConnectionHandler^ structuralConnectionHandler, IList<Subelement^>^ subelements )
static member RemoveMainSubelementsFromCustomConnection : structuralConnectionHandler : StructuralConnectionHandler * subelements : IList<Subelement> -> unit
Parameters
- structuralConnectionHandler StructuralConnectionHandler
- The existing StructuralConnectionHandler having custom StructuralConnectionHandlerType which is about to be modified.
- subelements IListSubelement
- The main Subelements of input StructuralConnectionHandler which are to be used to modify custom StructuralConnectionHandlerType.
| Exception | Condition |
|---|---|
| ArgumentException | Input StructuralConnectionHandler must have custom type. -or- All the input Subelements must belong to input StructuralConnectionHandler. After modification of StructuralConnectionHandlerType there must remain at least one subelement of structural connections category in StructuralConnectionHandler. |
| ArgumentNullException | A non-optional argument was null |
See Also