GetSegmentEndPoints Method


Gets the end points of a segment.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public void GetSegmentEndPoints(
	int segmentId,
	int regionId,
	out UV end1,
	out UV end2
)
Visual Basic
Public Sub GetSegmentEndPoints ( _
	segmentId As Integer, _
	regionId As Integer, _
	<OutAttribute> ByRef end1 As UV, _
	<OutAttribute> ByRef end2 As UV _
)
Visual C++
public:
void GetSegmentEndPoints(
	int segmentId, 
	int regionId, 
	[OutAttribute] UV^% end1, 
	[OutAttribute] UV^% end2
)

Parameters

segmentId
Type: System Int32
The segment id.
regionId
Type: System Int32
The region id.
end1
Type: Autodesk.Revit.DB UV %
One end point.
end2
Type: Autodesk.Revit.DB UV %
The other end point.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The segment id is invalid.
Autodesk.Revit.Exceptions InvalidOperationException This operation is valid only for vertically compound structures.

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 →