Skip to content

Python package

ra.ring_curve

Ring rail curves at the document finger size (closed, open, bypass, shaped).

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.RingCurveApi.

Functions

Function
create_bypass()A bypass ring curve (crossed ends).
create_closed()A closed ring curve (full circle at the finger size).
create_open()An open ring curve (circle with a gap).
create_shape()shape_type is “ROUND” (uses diameter) or “ELLIPSE” (uses width x height).

ra.ring_curve.create_bypass()

ra.ring_curve.create_bypass(opening_length=None, angle=None, offset_x=None, offset_y=None, tangent=None, finger_diameter=None, plane=None, profile=None, element=None) -> str

A bypass ring curve (crossed ends). element = name of a saved RingCurve element (ra.elements.list(“RingCurve”)) to start from; explicit arguments override it — with an element, an argument left at its signature default keeps the element’s value (its finger size is always replaced, and the curve type is always BYPASS).

ParameterType
opening_lengthfloatoptional — None = the tool default
anglefloatoptional — None = the tool default
offset_xfloatoptional — None = the tool default
offset_yfloatoptional — None = the tool default
tangentfloatoptional — None = the tool default
finger_diameterfloatoptional — None = the tool default
planeOptional[PlaneLike]optional — None = the tool default
profilestroptional — None = the tool default
elementstroptional — None = the tool default

ra.ring_curve.create_closed()

ra.ring_curve.create_closed(finger_diameter=None, plane=None, profile=None, element=None) -> str

A closed ring curve (full circle at the finger size). element = name of a saved RingCurve element (ra.elements.list(“RingCurve”)) to start from; explicit arguments override it (its finger size is always replaced, and the curve type is always CLOSE).

ParameterType
finger_diameterfloatoptional — None = the tool default
planeOptional[PlaneLike]optional — None = the tool default
profilestroptional — None = the tool default
elementstroptional — None = the tool default

ra.ring_curve.create_open()

ra.ring_curve.create_open(opening_length=None, finger_diameter=None, plane=None, profile=None, element=None) -> str

An open ring curve (circle with a gap). element = name of a saved RingCurve element (ra.elements.list(“RingCurve”)) to start from; explicit arguments override it — with an element, an argument left at its signature default keeps the element’s value (its finger size is always replaced, and the curve type is always OPEN).

ParameterType
opening_lengthfloatoptional — None = the tool default
finger_diameterfloatoptional — None = the tool default
planeOptional[PlaneLike]optional — None = the tool default
profilestroptional — None = the tool default
elementstroptional — None = the tool default

ra.ring_curve.create_shape()

ra.ring_curve.create_shape(shape_type=None, diameter=None, width=None, height=None, offset=None, move_in_z=None, opening_length=None, finger_diameter=None, plane=None, profile=None, element=None) -> str

shape_type is “ROUND” (uses diameter) or “ELLIPSE” (uses width x height). element = name of a saved RingCurve element (ra.elements.list(“RingCurve”)) to start from; explicit arguments override it — with an element, an argument left at its signature default keeps the element’s value (its finger size is always replaced, and the curve type is always SHAPE).

ParameterType
shape_typestroptional — None = the tool default
diameterfloatoptional — None = the tool default
widthfloatoptional — None = the tool default
heightfloatoptional — None = the tool default
offsetfloatoptional — None = the tool default
move_in_zfloatoptional — None = the tool default
opening_lengthfloatoptional — None = the tool default
finger_diameterfloatoptional — None = the tool default
planeOptional[PlaneLike]optional — None = the tool default
profilestroptional — None = the tool default
elementstroptional — None = the tool default