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
| Parameter | Type | |
|---|---|---|
curve_id | IdLike | required |
text | str | required |
height | float | optional — None = the tool default |
thickness | float | optional — None = the tool default |
spacing | float | optional — None = the tool default |
font | str | optional — None = the tool default |
rotation | float | optional — None = the tool default |
move_z | float | optional — None = the tool default |
horizontal_align | str | optional — None = the tool default |
vertical_align | str | optional — None = the tool default |
flip_horizontal | bool | optional — None = the tool default |
flip_vertical | bool | optional — None = the tool default |