Skip to content

Python package

ra.text_on_curve

Text laid along a curve.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.TextOnCurveApi.

Functions

Function
create()Creates the text along curve_id and returns the Guids of the added objects (breps and/or curves).

ra.text_on_curve.create()

ra.text_on_curve.create(curve_id: IdLike, text: str, height=None, thickness=None, spacing=None, font=None, rotation=None, move_z=None, horizontal_align=None, vertical_align=None, flip_horizontal=None, flip_vertical=None) -> List[str]

Creates the text along curve_id and returns the Guids of the added objects (breps and/or curves). text what to write (required) height letter height in mm (default 1.5) thickness extrusion depth in mm; 0 = curves only (default 0) spacing letter spacing (default 0.5) font installed font name (default “Bienchen”, the tool’s default) rotation letter rotation in degrees moveZ lift above the curve in mm horizontal_align LEFT | CENTER | RIGHT | JUSTIFY (default LEFT) vertical_align TOP | CENTER | BOTTOM (default CENTER) flip_horizontal / flip_vertical mirror the text

ParameterType
curve_idIdLikerequired
textstrrequired
heightfloatoptional — None = the tool default
thicknessfloatoptional — None = the tool default
spacingfloatoptional — None = the tool default
fontstroptional — None = the tool default
rotationfloatoptional — None = the tool default
move_zfloatoptional — None = the tool default
horizontal_alignstroptional — None = the tool default
vertical_alignstroptional — None = the tool default
flip_horizontalbooloptional — None = the tool default
flip_verticalbooloptional — None = the tool default