Skip to content

Python package

ra.graduated

Graduated shanks: a run of stones shrinking away from the centre.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.GraduatedApi.

Functions

Function
all()Graduated handles for every object of this kind in the active document (empty when there is no document).
by_layer()Graduated 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 graduated shank — the ArtisanGraduated tool, headless.
find()The handle for id, or None when the id does not belong to an object of this kind.
selected()Graduated handles for the objects of this kind currently selected in the active document.

ra.graduated.all()

ra.graduated.all() -> List[Graduated]

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

ra.graduated.by_layer()

ra.graduated.by_layer(layer_name: str) -> List[Graduated]

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

ParameterType
layer_namestrrequired

ra.graduated.count()

ra.graduated.count() -> int

Number of objects of this kind in the active document.

ra.graduated.create()

ra.graduated.create(finger_diameter=None, number_of_stones=None, size_start=None, size_end=None, center_stone_size=None, top_width=None, top_height=None, bottom_width=None, bottom_height=None, profile=None, plane=None, element=None) -> Graduated

Builds a graduated shank — the ArtisanGraduated tool, headless. Millimetres; omitting keeps the tool default (or the user’s saved defaults): number_of_stones 4 per side, size_start 2.5, size_end 1.5, center_stone_size 6.1, top profile 1.5 x 1.6, bottom profile 3.0 x 1.6. finger_diameter 0 = the document’s finger size. profile picks a RING_PROFILE asset by name for both band sections. Returns an Graduated handle: use handle.Shank / handle.Gems to adjust the rest of the parameters. element = name of a saved element (ra.elements.list) to start from; explicit arguments override it.

ParameterType
finger_diameterfloatoptional — None = the tool default
number_of_stonesintoptional — None = the tool default
size_startfloatoptional — None = the tool default
size_endfloatoptional — None = the tool default
center_stone_sizefloatoptional — 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
profilestroptional — None = the tool default
planeOptional[PlaneLike]optional — None = the tool default
elementstroptional — None = the tool default

ra.graduated.find()

ra.graduated.find(id: IdLike) -> Graduated

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

ParameterType
idIdLikerequired

ra.graduated.selected()

ra.graduated.selected() -> List[Graduated]

Graduated 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().

Graduated (handle)

Graduated shank: a band whose section grows from the centre stone down toward the finger, carrying a run of stones that shrink along the way. Multiple gems, so no single MotherGem.

PropertyTypeSettable
gemsGraduatedGems
layer_namestr
mother_gem_idstr
object_typestr
positionPoint3d
ring_diameter_mmfloat
ring_size_labelstr
ring_size_regionstr
shankGraduatedShank
Method
delete()
move(translation: VectorLike)
set_element(element: str)Applies a saved Graduated element (ra.elements.list(“Graduated”)) to this shank: its parameters replace the current ones, the ring size stays, and the shank regenerates in place (same id).

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

GraduatedGems (section)

The graduated stone run: stones stepping down in size from the centre stone toward the band, with prongs that taper along the way.

PropertyTypeSettable
automatic_prong_diameterboolyes
bright_cutfloatyesmm
center_stone_sizefloatyesmm
distancefloatyesgap between adjacent stones, mm
drill_allow_intersectionboolyes
drill_heightfloatyesmm
drill_typestryes”NONE”, “ROUND” or “QUAD”
drill_widthfloatyesmm
enabledboolyes
end_prong_countintyes
extension_for_manufacturingfloatyesmm
gem_insidefloatyesmm
gem_move_in_z_endfloatmm
gem_move_in_z_startfloatmm
gem_shapestryes”ROUND”, “PRINCESS”, …
inner_heightfloatyesmm
inner_widthfloatyesmm
liftfloatyesmm
number_of_stonesintyesper side
prong_cut_by_ring_sizeboolyes
prong_diameter_endfloat
prong_diameter_startfloat
prong_distancefloatyes
prong_growfloatyes
prong_height_endfloat
prong_height_startfloat
prong_min_diameterfloatyes
prong_move_in_zfloatyes
prong_over_girdle_endfloat
prong_over_girdle_startfloat
prong_separation_endfloat
prong_separation_startfloat
prong_spacingfloatyes
prong_typestryes”NONE”, “SHARED” or “SCALLOPED”
prongs_enabledboolyesProngs — most sizes taper from the centre stone (Start) to the band (End).
size_endfloatnearest the band, mm
size_startfloatnearest the centre stone, mm
under_bezel_bottom_widthfloatyesmm
under_bezel_enabledboolyesThe rail under the stones.
under_bezel_gem_insidefloatyesrail offset into the stone, mm
under_bezel_girdle_widthfloatyestop diameter span, mm
under_bezel_heightfloatyes0 = auto (drop to the finger curve)
under_bezel_over_girdlefloatyesrise above the girdle, mm
under_bezel_widthfloatyestotal radial width, mm
verticalfloatyesmm
Method
set_gem_move_in_z(start: float, end: float)
set_prong_diameters(start: float, end: float)
set_prong_heights(start: float, end: float)
set_prong_over_girdle(start: float, end: float)
set_prong_separation(start: float, end: float)
set_sizes(start: float, end: float)start = nearest the centre stone

GraduatedShank (section)

The graduated band: two profiles that the section morphs between, plus the opening at the bottom.

PropertyTypeSettable
bottom_profileGraduatedProfile
cut_bumpingfloatyesmm
opening_marginfloatyesmm
top_profileGraduatedProfile

GraduatedProfile (section)

One of a graduated band’s two profiles (top / bottom). Same shape as a classic profile, on its own model.

PropertyTypeSettable
comfortfloatyesmm — used when Type is “COMFORT”
displacementfloatyesmm
enabledboolyes
heightfloatyesmm
orientationintyes0 = Natural, 1 = Reverse
profile_namestrRING_PROFILE asset name, "" when unset
rotationfloatyesdegrees
thicknessfloatyesmm — used when Type is “THICKNESS”
typestryes”SOLID”, “COMFORT” or “THICKNESS”
widthfloatyesmm
Method
set_profile(asset_name: str)RING_PROFILE asset by name