AssignAsPrimary Method


Connector Element Assign As Primary Method

Assign a connector as a primary connector.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void AssignAsPrimary()
Exceptions
Exception Condition
InvalidOperationException Thrown when fail to assign this connector as primary.
Remarks
This method is used to promote this connector as primary, and the rest of connectors in this system will be assigned as secondary.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →