Skip to content

Python package

ra.wedding_band

Single wedding bands.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.WeddingBandApi.

Functions

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

ra.wedding_band.all()

ra.wedding_band.all() -> List[WeddingBand]

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

ra.wedding_band.by_layer()

ra.wedding_band.by_layer(layer_name: str) -> List[WeddingBand]

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

ParameterType
layer_namestrrequired

ra.wedding_band.count()

ra.wedding_band.count() -> int

Number of objects of this kind in the active document.

ra.wedding_band.find()

ra.wedding_band.find(id: IdLike) -> WeddingBand

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

ParameterType
idIdLikerequired

ra.wedding_band.selected()

ra.wedding_band.selected() -> List[WeddingBand]

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

WeddingBand (handle)

A single wedding band.

PropertyTypeSettable
layer_namestr
mother_gem_idstr
object_typestr
positionPoint3d
regionstrsizing region, "" when unset
ringWeddingRing
Method
delete()
move(translation: VectorLike)
set_element(element: str)Applies a saved WeddingBand element (ra.elements.list(“WeddingBand”)) to this band: its profile, gems and metal replace the current ones, the ring size stays, and the band 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).

WeddingRing (section)

One ring of a wedding set, or the single band of a wedding band.

PropertyTypeSettable
gemsWeddingGems
metalstryese.g. “GOLD_YELLOW_18”
profileWeddingProfile
ring_diameter_mmfloat
ring_size_labelstr
ring_size_regionstr

WeddingGems (section)

The stones a wedding ring can carry around its band.

PropertyTypeSettable
automatic_prong_diameterboolyes
custom_distancestryes”Continuous” or “Equidistant”
distributionstryes”Full”, “Half”, “Onequarter” or “Custom”
drill_heightfloatyesmm
drill_typestryes”NONE”, “ROUND” or “QUAD”
drill_widthfloatyesmm
enabledboolyes
extension_manufacturingfloatyesmm
gem_insidefloatyesmm
gem_sizefloatyesmm
inner_heightfloatyesinner channel height, mm
inner_widthfloatyesinner channel width, mm
min_distancefloatyesmm
number_of_gemsintyesused when Distribution is “Custom”
prong_diameterfloatyesmm
prong_heightfloatyesmm
prong_move_in_zfloatyesmm
prong_typestryes”None”, “Shared” or “Channel”
shapestryes”Round” or “Princess”
verticalfloatyesmm

WeddingProfile (section)

The band section of a wedding ring: its section and profile asset.

PropertyTypeSettable
heightfloatyesmm
profile_namestrRING_PROFILE asset name, "" when unset
widthfloatyesmm
Method
set_profile(asset_name: str)list them with ra.assets.list(“RING_PROFILE”)