AreVertexPointsValid Method


Checks if the given vertex points are valid for the wire.

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2015

Syntax

C#
public static bool AreVertexPointsValid(
	IList<XYZ> vertexPoints,
	Connector startConnector,
	Connector endConnector
)
Visual Basic
Public Shared Function AreVertexPointsValid ( _
	vertexPoints As IList(Of XYZ), _
	startConnector As Connector, _
	endConnector As Connector _
) As Boolean
Visual C++
public:
static bool AreVertexPointsValid(
	IList<XYZ^>^ vertexPoints, 
	Connector^ startConnector, 
	Connector^ endConnector
)

Parameters

vertexPoints
Type: System.Collections.GenericIListXYZ
The vertex points.
startConnector
Type: Autodesk.Revit.DBConnector
The start connector of the wire.
endConnector
Type: Autodesk.Revit.DBConnector
The end connector of the wire.

Return Value

True if the given vertex points are valid, false otherwise.

Remarks

X and Y values are compared of the vertices.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →