Skip to content

.NET API

WeddingApi

Wedding sets — his-and-hers pairs baked as one group. Query-only for now: run ArtisanWeddingRing in the UI once, then script every variant from the handle it leaves behind.

from ArtisanPlugin.Scripting import WeddingApi

See also the guide, Shanks › Wedding, and the Python package, ra.wedding.

Methods

Method
AllIWedding handles for every object of this kind in the active document (empty when there is no document).
ByLayerIWedding handles on the layer with the given full path (empty when the layer does not exist).
CountNumber of objects of this kind in the active document.
FindThe handle for id, or null when the id does not belong to an object of this kind.
SelectedIWedding handles for the objects of this kind currently selected in the active document.

All

IReadOnlyList<IWedding> WeddingApi.All()

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

Returns IReadOnlyList<IWedding>.

ByLayer

IReadOnlyList<IWedding> WeddingApi.ByLayer(string layerName)

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

ParameterTypeDefault
layerNamestringrequired

Returns IReadOnlyList<IWedding>.

Count

int WeddingApi.Count()

Number of objects of this kind in the active document.

Returns int.

Find

IWedding WeddingApi.Find(Guid id)

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

ParameterTypeDefault
idGuidrequired

Returns IWedding.

Selected

IReadOnlyList<IWedding> WeddingApi.Selected()

IWedding handles for the objects of this kind currently selected in the active document.

Returns IReadOnlyList<IWedding>.

Handles and sections

What the methods above hand back. A handle’s setters regenerate the object; wrap changes in a Transaction so they land as one undo step.

IWedding

Handle — extends IParametricObject.

A wedding set: the two rings baked together as one group.

PropertyType
FirstRingIWeddingRingget
IdGuidget(from IParametricObject)
LayerNamestringget(from IParametricObject)
MotherGemIdGuidget(from IParametricObject)
ObjectTypestringget(from IParametricObject)
PositionPoint3dget(from IParametricObject)
Regionstringgetsizing region of the set, "" when unset
SecondRingIWeddingRingget
Method
void Delete()(from IParametricObject)
void Move(Vector3d translation)(from IParametricObject)

IWeddingRing

Section.

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

PropertyType
GemsIWeddingGemsget
Metalstringgete.g. “GOLD_YELLOW_18”
ProfileIWeddingProfileget
RingDiameterMmdoubleget
RingSizeLabelstringget
RingSizeRegionstringget
Method
void SetMetal(string metal)

IWeddingProfile

Section.

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

PropertyType
Heightdoublegetmm
ProfileNamestringgetRING_PROFILE asset name, "" when unset
Widthdoublegetmm
Method
void SetHeight(double height)
void SetProfile(string assetName)list them with AssetsApi.List(“RING_PROFILE”)
void SetWidth(double width)

IWeddingGems

Section.

The stones a wedding ring can carry around its band.

PropertyType
AutomaticProngDiameterboolget
CustomDistancestringget”Continuous” or “Equidistant”
Distributionstringget”Full”, “Half”, “Onequarter” or “Custom”
DrillHeightdoublegetmm
DrillTypestringget”NONE”, “ROUND” or “QUAD”
DrillWidthdoublegetmm
Enabledboolget
ExtensionManufacturingdoublegetmm
GemInsidedoublegetmm
GemSizedoublegetmm
InnerHeightdoublegetinner channel height, mm
InnerWidthdoublegetinner channel width, mm
MinDistancedoublegetmm
NumberOfGemsintgetused when Distribution is “Custom”
ProngDiameterdoublegetmm
ProngHeightdoublegetmm
ProngMoveInZdoublegetmm
ProngTypestringget”None”, “Shared” or “Channel”
Shapestringget”Round” or “Princess”
Verticaldoublegetmm
Method
void SetAutomaticProngDiameter(bool automatic)
void SetCustomDistance(string customDistance)”Continuous” or “Equidistant”
void SetDistribution(string distribution)”Full”, “Half”, “Onequarter” or “Custom”
void SetDrillHeight(double height)
void SetDrillType(string drillType)”NONE”, “ROUND” or “QUAD”
void SetDrillWidth(double width)
void SetEnabled(bool enabled)
void SetExtensionManufacturing(double extension)
void SetGemInside(double gemInside)
void SetGemSize(double size)
void SetInnerHeight(double height)
void SetInnerWidth(double width)
void SetMinDistance(double distance)
void SetNumberOfGems(int count)
void SetProngDiameter(double diameter)
void SetProngHeight(double height)
void SetProngMoveInZ(double move)
void SetProngType(string prongType)”None”, “Shared” or “Channel”
void SetShape(string shape)”Round” or “Princess”
void SetVertical(double vertical)