Skip to content

Python package

ra.bail

Pendant bails.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.BailApi.

Functions

Function
create()Creates a bail on plane (defaults to the active view’s construction plane, like the tool).

ra.bail.create()

ra.bail.create(plane=None, diameter_top=None, diameter_bottom=None, distance=None, with_o_ring=None, name=None, profile=None, top_width=None, top_height=None, bottom_width=None, bottom_height=None, top_profile=None, bottom_profile=None, starting_on_top=None, starting_on_bottom=None, curve_tension=None, o_ring_thickness=None, o_ring_diameter=None, o_ring_overlap=None, o_ring_rotation=None, element=None) -> List[str]

Creates a bail on plane (defaults to the active view’s construction plane, like the tool). Millimetres; omitting keeps the tool default (or the user’s saved defaults): diameter_top 3, diameter_bottom 1, distance 5. withORing True also builds the torus o-ring; False (default) builds none. The wire cross-section drives the weight: top_width/top_height (default 4 x 1.4) and bottom_width/bottom_height (default 1 x 1); profile sets both profile assets, top_profile/bottom_profile each one. starting_on_top, starting_on_bottom (default 0.5) and curve_tension (default 1) shape the side curves; NaN keeps the default. o_ring_thickness (1), o_ring_diameter (2), o_ring_overlap (1) size the o-ring; o_ring_rotation in degrees (0; NaN keeps it). Returns the ids of the created breps. element = name of a saved element (ra.elements.list) to start from; explicit arguments override it.

ParameterType
planeOptional[PlaneLike]optional — None = the tool default
diameter_topfloatoptional — None = the tool default
diameter_bottomfloatoptional — None = the tool default
distancefloatoptional — None = the tool default
with_o_ringbooloptional — None = the tool default
namestroptional — None = the tool default
profilestroptional — None = the tool default
top_widthfloatoptional — None = the tool default
top_heightfloatoptional — None = the tool default
bottom_widthfloatoptional — None = the tool default
bottom_heightfloatoptional — None = the tool default
top_profilestroptional — None = the tool default
bottom_profilestroptional — None = the tool default
starting_on_topfloatoptional — None = the tool default
starting_on_bottomfloatoptional — None = the tool default
curve_tensionfloatoptional — None = the tool default
o_ring_thicknessfloatoptional — None = the tool default
o_ring_diameterfloatoptional — None = the tool default
o_ring_overlapfloatoptional — None = the tool default
o_ring_rotationfloatoptional — None = the tool default
elementstroptional — None = the tool default