Skip to content

Python package

ra.plain_band

Single plain bands.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.PlainBandApi.

Functions

Function
all()PlainBand handles for every object of this kind in the active document (empty when there is no document).
by_layer()PlainBand 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()PlainBand handles for the objects of this kind currently selected in the active document.

ra.plain_band.all()

ra.plain_band.all() -> List[PlainBand]

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

ra.plain_band.by_layer()

ra.plain_band.by_layer(layer_name: str) -> List[PlainBand]

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

ParameterType
layer_namestrrequired

ra.plain_band.count()

ra.plain_band.count() -> int

Number of objects of this kind in the active document.

ra.plain_band.find()

ra.plain_band.find(id: IdLike) -> PlainBand

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

ParameterType
idIdLikerequired

ra.plain_band.selected()

ra.plain_band.selected() -> List[PlainBand]

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

PlainBand (handle)

A single plain band.

PropertyTypeSettable
layer_namestr
mother_gem_idstr
object_typestr
positionPoint3d
regionstrsizing region, "" when unset
remove_channelboolyesShared and Scalloped: True leaves out the channel under the stones
ringWeddingRing
scallop_booleanboolyesRing.Gems.ProngType Scalloped: True subtracts the cutters, False keeps them as objects
scallop_cuttersScallopCuttersScalloped: the cutters under each stone
scallop_v_cuttersScallopCuttersScalloped: the V-cutters between the stones (Enabled turns them on)
Method
delete()
move(translation: VectorLike)
set_element(element: str)Applies a saved PlainBand element (ra.elements.list(“PlainBand”)) 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 plain band.

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

ScallopCutters (section)

The scalloped cutters (under each stone) or V-cutters (between the stones) of a shank, editable. The members marked “cutters only” read as empty/0 on the V-cutters and refuse a set there. Each setter regenerates the owner in place.

PropertyTypeSettable
enabledboolyesV-cutters: whether they are built; the cutters are always on
end_heightfloatyesmm
end_widthfloatyesmm
keepboolyesTrue = start and end move together (the panel’s Both Sides)
lengthfloatyesmm
over_girdlefloatyesmm, signed
over_girdle_middlefloatyescutters only: mm, signed
shapestryescutters only: U_SHAPE or V_SHAPE
shape_factorfloatyescutters only: 0-2
start_heightfloatyesmm
start_widthfloatyesmm

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”; a plain band also “Scalloped”
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”)