Skip to content

Python package

ra.signet_ring

Signet rings with a shaped top face.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.SignetRingApi.

Functions

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

ra.signet_ring.all()

ra.signet_ring.all() -> List[SignetRing]

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

ra.signet_ring.by_layer()

ra.signet_ring.by_layer(layer_name: str) -> List[SignetRing]

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

ParameterType
layer_namestrrequired

ra.signet_ring.count()

ra.signet_ring.count() -> int

Number of objects of this kind in the active document.

ra.signet_ring.create()

ra.signet_ring.create(finger_diameter=None, width=None, height=None, height_position=None, rotation=None, width_bottom_profile=None, height_bottom_profile=None, width_middle_profile=None, height_middle_profile=None, recess=None, thickness=None, inner_height=None, profile=None, plane=None, element=None) -> SignetRing

Builds a signet ring — the ArtisanSignetRing tool, headless. Millimetres / degrees; omitting keeps the tool default (or the user’s saved defaults). finger_diameter 0 = the document’s finger size. recess hollows the face; thickness and inner_height shape that recess. Returns an SignetRing handle to the new ring. element = name of a saved element (ra.elements.list) to start from; explicit arguments override it.

ParameterType
finger_diameterfloatoptional — None = the tool default
widthfloatoptional — None = the tool default
heightfloatoptional — None = the tool default
height_positionfloatoptional — None = the tool default
rotationfloatoptional — None = the tool default
width_bottom_profilefloatoptional — None = the tool default
height_bottom_profilefloatoptional — None = the tool default
width_middle_profilefloatoptional — None = the tool default
height_middle_profilefloatoptional — None = the tool default
recessOptional[bool]optional — None = the tool default
thicknessfloatoptional — None = the tool default
inner_heightfloatoptional — None = the tool default
profilestroptional — None = the tool default
planeOptional[PlaneLike]optional — None = the tool default
elementstroptional — None = the tool default

ra.signet_ring.find()

ra.signet_ring.find(id: IdLike) -> SignetRing

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

ParameterType
idIdLikerequired

ra.signet_ring.selected()

ra.signet_ring.selected() -> List[SignetRing]

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

SignetRing (handle)

Signet ring: a flat face carried on a band.

PropertyTypeSettable
faceSignetFace
layer_namestr
mother_gem_idstr
object_typestr
positionPoint3d
ring_diameter_mmfloat
ring_size_labelstr
ring_size_regionstr
Method
delete()
move(translation: VectorLike)
set_element(element: str)Applies a saved SignetRing element (ra.elements.list(“SignetRing”)) to this ring: its parameters replace the current ones, the ring size stays, and the ring 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).

SignetFace (section)

The signet face and the band under it — shared by the classic signet and the advanced one. A live view over the ring’s stored parameters: getters read the current values, setters regenerate the ring in place (same Guid) and are license-gated.

PropertyTypeSettable
heightfloatyesface height, mm
height_bottom_profilefloatmm
height_middle_profilefloatmm
height_positionfloatyeshow high the face sits over the finger, mm
inner_heightfloatyesmm — used when Recess is on
profile_namestrRING_PROFILE asset name, "" when unset
recessboolyeshollow the back of the face
rotationfloatyesdegrees
shape_modestryes”Circle” or “Custom”
tangentfloatyes
thicknessfloatyesmm — used when Recess is on
widthfloatyesface width, mm
width_bottom_profilefloatband section at the bottom, mm
width_middle_profilefloatband section at the middle, mm
Method
set_bottom_profile(width: float, height: float)
set_middle_profile(width: float, height: float)
set_profile(asset_name: str)RING_PROFILE asset by name — list them with ra.assets.list(“RING_PROFILE”)