CurveArrows

Enables or disabled a curve object's annotation arrows.

Syntax

rhinoscriptsyntax.CurveArrows (curve_id, arrow_style=None)

rhinoscript.curve.CurveArrows (curve_id, arrow_style=None)

Parameters

curve_id

Required.  Guid or String.  The object's identifier.

arrow_style

Optional.  Number.  The style of annotation arrows to be displayed.  The styles are as follows:

Value

Description

0

No annotation arrows

1

Display an annotation arrow at the starting point of the curve

2

Display an annotation arrow at the ending point of the curve

3

Display an annotation arrow at both the starting point and the ending point of the curve

Returns

Number

If style is not specified, the current annotation arrow style if successful.

Number

If style is specified, the previous annotation arrow style if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a curve", rs.filter.curve)

if rs.CurveArrows(obj)!=3: rs.CurveArrows(obj, 3)

Also See

IsCurve