Skip to content

Python package

ra.silhouette_ring

Rings extruded from a frontal profile.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.SilhouetteRingApi.

Functions

Function
all()SilhouetteRing handles for every object of this kind in the active document (empty when there is no document).
by_layer()SilhouetteRing handles on the layer with the given full path (empty when the layer does not exist).
count()Number of objects of this kind in the active document.
create()Builds a silhouette ring (the ArtisanSilhouetteRing tool, formerly ArtisanRingExtrude, headless): a frontal silhouette around the finger hole is extruded along the finger axis and cut by a lateral silhouette (a RING_SIDE_CURVE asset) — the quick way to get a wide, sculpted band.
find()The handle for id, or None when the id does not belong to an object of this kind.
selected()SilhouetteRing handles for the objects of this kind currently selected in the active document.

ra.silhouette_ring.all()

ra.silhouette_ring.all() -> List[SilhouetteRing]

SilhouetteRing handles for every object of this kind in the active document (empty when there is no document).

ra.silhouette_ring.by_layer()

ra.silhouette_ring.by_layer(layer_name: str) -> List[SilhouetteRing]

SilhouetteRing handles on the layer with the given full path (empty when the layer does not exist).

ParameterType
layer_namestrrequired

ra.silhouette_ring.count()

ra.silhouette_ring.count() -> int

Number of objects of this kind in the active document.

ra.silhouette_ring.create()

ra.silhouette_ring.create(top_length=None, side_length=None, bottom_length=None, top_thickness=None, bottom_thickness=None, hollow=None, linear_thickness=None, angle=None, symmetry=None, advanced_top_thickness=None, advanced_lateral_thickness=None, frontal_profile=None, lateral_profile=None, finger_diameter=None, plane=None, silhouette=None, table_width=None, shoulder=None, shoulder_bulge=None, corner_radius=None, curve_id=None, fit_curve=None, edge_fillet=None, comfort_fit=None, hollow_span=None) -> SilhouetteRing

Builds a silhouette ring (the ArtisanSilhouetteRing tool, formerly ArtisanRingExtrude, headless): a frontal silhouette around the finger hole is extruded along the finger axis and cut by a lateral silhouette (a RING_SIDE_CURVE asset) — the quick way to get a wide, sculpted band. silhouette picks where the frontal outline comes from. Omitted keeps the historic PROFILE (or the user’s saved defaults): PROFILE = an EXTERNAL_RING_PROFILE asset (frontal_profile) grown around the finger by top_length / side_length / bottom_length; PARAMETRIC = a flat table table_width wide (10) sitting top_length over the finger, a round bottom bottom_length thick and shoulders that land tangent on it, shoulder STRAIGHT (default) | CURVED with shoulder_bulge (0.5, negative = inwards, NaN = keep), corners rounded by corner_radius (NaN = keep, 0 = sharp); CURVE = the closed planar curve curve_id of the document, used as drawn around the finger axis, or scaled to the three lengths when fit_curve is True. Passing curve_id alone implies CURVE. edge_fillet softens the outer edges of the band and comfort_fit the two edges of the finger hole (mm, NaN = keep, 0 = sharp). hollow_span (degrees, NaN = keep, 360 = whole band) limits the hollow to an arc centred on the top, leaving the bottom solid. Millimetres; omitting keeps the tool default (or the user’s saved defaults): top_length 2, side_length 2, bottom_length 2 (metal over the finger at top / sides / bottom), top_thickness 2, bottom_thickness 2 (band width, frontal view). hollow True carves the inside with linear_thickness (2), angle (degrees, NaN = 0), symmetry SYMMETRIC (default) | ASYMMETRIC with advanced_top_thickness / advanced_lateral_thickness (2). frontal_profile / lateral_profile pick assets by name (see AssetsApi). finger_diameter 0 = document ring size. plane omitted = world XY. Returns an SilhouetteRing handle to the new ring; its setters edit the ring in place.

ParameterType
top_lengthfloatoptional — None = the tool default
side_lengthfloatoptional — None = the tool default
bottom_lengthfloatoptional — None = the tool default
top_thicknessfloatoptional — None = the tool default
bottom_thicknessfloatoptional — None = the tool default
hollowOptional[bool]optional — None = the tool default
linear_thicknessfloatoptional — None = the tool default
anglefloatoptional — None = the tool default
symmetrystroptional — None = the tool default
advanced_top_thicknessfloatoptional — None = the tool default
advanced_lateral_thicknessfloatoptional — None = the tool default
frontal_profilestroptional — None = the tool default
lateral_profilestroptional — None = the tool default
finger_diameterfloatoptional — None = the tool default
planeOptional[PlaneLike]optional — None = the tool default
silhouettestroptional — None = the tool default
table_widthfloatoptional — None = the tool default
shoulderstroptional — None = the tool default
shoulder_bulgefloatoptional — None = the tool default
corner_radiusfloatoptional — None = the tool default
curve_idOptional[IdLike]optional — None = the tool default
fit_curveOptional[bool]optional — None = the tool default
edge_filletfloatoptional — None = the tool default
comfort_fitfloatoptional — None = the tool default
hollow_spanfloatoptional — None = the tool default

ra.silhouette_ring.find()

ra.silhouette_ring.find(id: IdLike) -> SilhouetteRing

The handle for id, or None when the id does not belong to an object of this kind.

ParameterType
idIdLikerequired

ra.silhouette_ring.selected()

ra.silhouette_ring.selected() -> List[SilhouetteRing]

SilhouetteRing handles for the objects of this kind currently selected in the active document.

Handles

Objects returned by the functions above. Assigning a settable property regenerates the object; the change is one undo step inside ra.transaction().

SilhouetteRing (handle)

Silhouette ring (the old Ring Extrude): the outline of the ring seen from the front, around the finger hole, extruded to a band width. Every setter regenerates the ring in place (same id). The names are the ones of the create_silhouette_ring tool: a THICKNESS is metal measured from the finger (top, bottom, side), a WIDTH is the band along the finger axis. ra.silhouette_ring.create keeps the historic argument names of Ring Extrude, where those were called lengths and thicknesses.

PropertyTypeSettable
anglefloatyesdegrees the silhouette is turned around the finger axis
bottom_thicknessfloatyesmm of metal under the finger at the bottom
bottom_widthfloatyesmm, band width at the bottom
comfort_fitfloatyesmm, radius softening the two edges of the finger hole; 0 = sharp
corner_radiusfloatyesmm, radius rounding the corners of the silhouette (PARAMETRIC); 0 = sharp
edge_filletfloatyesmm, radius softening the outer edges of the band; 0 = sharp
fit_curveboolyesCURVE: True = the curve is scaled to the three thicknesses instead of used as drawn
frontal_profile_namestrEXTERNAL_RING_PROFILE asset name (PROFILE), "" when unset
has_curveboolTrue when the ring carries its own silhouette curve (set with SetCurveId)
hollowboolyesTrue = the band is carved from the finger side
hollow_lateral_thicknessfloatyesmm, wall left at the sides by an ASYMMETRIC hollow
hollow_spanfloatyesdegrees of arc, centred on the top, the hollow carves; 360 = the whole band
hollow_symmetrystryes“SYMMETRIC” (one wall: WallThickness) or “ASYMMETRIC” (HollowTopThickness / HollowLateralThickness)
hollow_top_thicknessfloatyesmm, wall left at the top by an ASYMMETRIC hollow
lateral_profile_namestrRING_SIDE_CURVE asset name: the bend of the band’s edge between its two widths
layer_namestr
mother_gem_idstr
object_typestr
positionPoint3d
ring_diameter_mmfloat
ring_size_labelstr
ring_size_regionstr
shoulderstryes“STRAIGHT” or “CURVED” (PARAMETRIC)
shoulder_bulgefloatyesmm the middle of a CURVED shoulder leaves the straight line; negative = inwards
side_thicknessfloatyesmm of metal at the sides of the finger (PROFILE, or CURVE fitted to the ring size)
silhouettestryes“PARAMETRIC” (flat table, round bottom, tangent shoulders), “PROFILE” (an EXTERNAL_RING_PROFILE asset) or “CURVE” (the user’s own closed curve)
table_widthfloatyesmm, width of the flat table (PARAMETRIC)
top_thicknessfloatyesmm of metal over the finger at the top
top_widthfloatyesmm, band width at the top, along the finger axis
wall_thicknessfloatyesmm, wall left by a SYMMETRIC hollow
Method
delete()
move(translation: VectorLike)
set_curve_id(curve_id: IdLike)A closed planar curve of the document becomes the silhouette (copied into the ring) and the mode becomes CURVE
set_frontal_profile(asset_name: str)EXTERNAL_RING_PROFILE asset by name
set_lateral_profile(asset_name: str)RING_SIDE_CURVE asset by name
set_width(width: float)Band width, top and bottom alike.

Plus what every handle has: id, delete(), update(**kwargs), parameters(), equality and hashing by id, and raw (the underlying .NET object).