Creates a new wire element.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- curve
- Type: Autodesk.Revit.DB Curve
The base line of the wire.
- view
- Type: Autodesk.Revit.DB View
The view in which the wire is to be visible.
- startConnector
- Type: Autodesk.Revit.DB Connector
The connector which connects with the start point connector of wire, if it is a null reference ( Nothing in Visual Basic) , the start point connects with nothing.
- endConnector
- Type: Autodesk.Revit.DB Connector
The connector which connects with the end point connector of wire, if it is a null reference ( Nothing in Visual Basic) , the end point connects with nothing.
- wireType
- Type: Autodesk.Revit.DB.Electrical WireType
Specify wire type of new created wire.
- wiringType
- Type: Autodesk.Revit.DB.Electrical WiringType
Specify wiring type(Arc or chamfer) of new created wire.
Return Value
If successful a new wire element within the project, otherwise a null reference ( Nothing in Visual Basic) .Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions InvalidOperationException | An InvalidOperationException will to be thrown when Revit MEP product is unavailable. |