OnPolylineSegments Method


This method is called after unhandled curve was tessellated to polyline segments and sent to the output.

Note for 2D export: if the export is performed for the view in non-Wireframe display style, then

  • this method is called outside of view, instance and link begin/end calls but still between OnElementBegin2D/OnElementEnd2D calls
  • this method is never called for annotation elements, i.e. their geometry should be processed in methods OnCurve and OnPolyline

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

Syntax

C#
void OnPolylineSegments(
	PolylineSegments segments
)
Visual Basic
Sub OnPolylineSegments ( _
	segments As PolylineSegments _
)
Visual C++
void OnPolylineSegments(
	PolylineSegments^ segments
)

Parameters

segments
Type: Autodesk.Revit.DBPolylineSegments
A structure describing the polyline segments.

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 →