<Code Lib>
2026 Method
Changes 8
M

StructuralConnectionHandlerType.RemoveMainSubelementsFromCustomConnection

Description:
Removes one or more subelements from a StructuralConnectionHandlerType. The subelements will be erased.

[ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Prefer updateCustomConnectionType instead.")]
public static void RemoveMainSubelementsFromCustomConnection(
	StructuralConnectionHandler structuralConnectionHandler,
	IList<Subelement> subelements
)

  • structuralConnectionHandler
    The existing StructuralConnectionHandler having custom StructuralConnectionHandlerType which is about to be modified.
  • IList<Subelement>
    subelements
    The main Subelements of input StructuralConnectionHandler which are to be used to modify custom StructuralConnectionHandlerType.

  • 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.
  • A non-optional argument was null

Loading…