M

StructuralConnectionHandler.CreateGenericConnection

Description:
Creates a new instance of a Structural Connection Handler with a generic type, which defines the connection between given elements.
Remarks:
Elements should be of the following structural categories: framings (OST_StructuralFraming), columns (OST_StructuralColumns), walls (OST_Walls), floors (OST_Floors) or foundations (OST_StructuralFoundations). The first of given elements is set as the primary one. A generic connection type will be created by default, if there is none present in the model.
public static StructuralConnectionHandler CreateGenericConnection(
	Document document,
	IList<ElementId> idsToConnect
)
Return Value StructuralConnectionHandler The newly created generic connection.