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.
| Parameter | Type | |
|---|---|---|
plane | Optional[PlaneLike] | optional — None = the tool default |
diameter_top | float | optional — None = the tool default |
diameter_bottom | float | optional — None = the tool default |
distance | float | optional — None = the tool default |
with_o_ring | bool | optional — None = the tool default |
name | str | optional — None = the tool default |
profile | str | optional — None = the tool default |
top_width | float | optional — None = the tool default |
top_height | float | optional — None = the tool default |
bottom_width | float | optional — None = the tool default |
bottom_height | float | optional — None = the tool default |
top_profile | str | optional — None = the tool default |
bottom_profile | str | optional — None = the tool default |
starting_on_top | float | optional — None = the tool default |
starting_on_bottom | float | optional — None = the tool default |
curve_tension | float | optional — None = the tool default |
o_ring_thickness | float | optional — None = the tool default |
o_ring_diameter | float | optional — None = the tool default |
o_ring_overlap | float | optional — None = the tool default |
o_ring_rotation | float | optional — None = the tool default |
element | str | optional — None = the tool default |