Skip to content

.NET API

ToiEtMoiApi

Toi et Moi ring top (the ArtisanToiEtMoi tool, headless): two INDEPENDENT stones straddling the top of a finger size, one leaning to each side. The classic combinations mix shapes (pear + round).

from ArtisanPlugin.Scripting import ToiEtMoiApi

See also the guide, Gems › Toi et Moi, and the Python package, ra.toi_et_moi.

Methods

Method
CreateCreates the editable Toi et Moi group.

Create

IReadOnlyList<Guid> ToiEtMoiApi.Create(
    string shapeA,
    double caratsA,
    string shapeB,
    double caratsB,
    string materialA = "Diamond",
    string materialB = "Diamond",
    double angleA = 14,
    double angleB = -14,
    double rotationYA = 20,
    double rotationYB = -20,
    double distance = 0,
    double fingerDiameter = 0)

Creates the editable Toi et Moi group. Per stone: shape (GemShape name), carats and material; placement starts from the user’s saved Toi et Moi defaults when there are any (an argument left at its signature default keeps the saved value), otherwise from the tool’s (stone A at +14 degrees leaning +20, stone B mirrored), unless the angle/rotationY arguments say otherwise. fingerDiameter 0 = the document’s finger size. Returns the ids of the two gems (the group also carries the finger reference circle).

ParameterTypeDefault
shapeAstringrequired
caratsAdoublerequired
shapeBstringrequired
caratsBdoublerequired
materialAstring"Diamond"
materialBstring"Diamond"
angleAdouble14
angleBdouble-14
rotationYAdouble20
rotationYBdouble-20
distancedouble0
fingerDiameterdouble0

Returns IReadOnlyList<Guid>.