Creates a new CircuitNamingScheme.
Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
C#
public static CircuitNamingScheme Create( Document document, string name, IList<TableCellCombinedParameterData> data )
Parameters
- document Document
- The document in which to create the CircuitNamingScheme.
- name String
- The name of CircuitNamingScheme.
- data IList<TableCellCombinedParameterData>
- The array of TableCellCombinedParameterData to be set as combined parameters.
Return Value
CircuitNamingSchemeThe newly created CircuitNamingScheme.
Exceptions
Exception | Condition |
---|---|
ArgumentException | name is an empty string or contains only whitespace. -or- name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~". -or- The given value for name is already in use as a CircuitNamingScheme name. -or- The data contains invalid parameter id. |
ArgumentNullException | A non-optional argument was null |