Skip to content

.NET API

PlainBandApi

Single plain bands.

from ArtisanPlugin.Scripting import PlainBandApi

See also the Python package, ra.plain_band.

Methods

Method
AllIPlainBand handles for every object of this kind in the active document (empty when there is no document).
ByLayerIPlainBand 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.
SelectedIPlainBand handles for the objects of this kind currently selected in the active document.

All

IReadOnlyList<IPlainBand> PlainBandApi.All()

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

Returns IReadOnlyList<IPlainBand>.

ByLayer

IReadOnlyList<IPlainBand> PlainBandApi.ByLayer(string layerName)

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

ParameterTypeDefault
layerNamestringrequired

Returns IReadOnlyList<IPlainBand>.

Count

int PlainBandApi.Count()

Number of objects of this kind in the active document.

Returns int.

Find

IPlainBand PlainBandApi.Find(Guid id)

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

ParameterTypeDefault
idGuidrequired

Returns IPlainBand.

Selected

IReadOnlyList<IPlainBand> PlainBandApi.Selected()

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

Returns IReadOnlyList<IPlainBand>.

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.

IPlainBand

Handle — extends IParametricObject.

A single plain band.

PropertyType
IdGuidget(from IParametricObject)
LayerNamestringget(from IParametricObject)
MotherGemIdGuidget(from IParametricObject)
ObjectTypestringget(from IParametricObject)
PositionPoint3dget(from IParametricObject)
Regionstringgetsizing region, "" when unset
RemoveChannelboolgetShared and Scalloped: true leaves out the channel under the stones
RingIWeddingRingget
ScallopBooleanboolgetRing.Gems.ProngType Scalloped: true subtracts the cutters, false keeps them as objects
ScallopCuttersIScallopCuttersgetScalloped: the cutters under each stone
ScallopVCuttersIScallopCuttersgetScalloped: the V-cutters between the stones (Enabled turns them on)
Method
void Delete()(from IParametricObject)
void Move(Vector3d translation)(from IParametricObject)
void SetElement(string element)Applies a saved PlainBand element (ElementsApi.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).
void SetRemoveChannel(bool remove)
void SetScallopBoolean(bool boolean)

IScallopCutters

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.

PropertyType
EnabledboolgetV-cutters: whether they are built; the cutters are always on
EndHeightdoublegetmm
EndWidthdoublegetmm
Keepboolgettrue = start and end move together (the panel’s Both Sides)
Lengthdoublegetmm
OverGirdledoublegetmm, signed
OverGirdleMiddledoublegetcutters only: mm, signed
Shapestringgetcutters only: U_SHAPE or V_SHAPE
ShapeFactordoublegetcutters only: 0-2
StartHeightdoublegetmm
StartWidthdoublegetmm
Method
void SetEnabled(bool enabled)
void SetEndHeight(double height)mm, 0 or more (with Keep on, the start too)
void SetEndWidth(double width)mm, 0 or more (with Keep on, the start too)
void SetKeep(bool keep)
void SetLength(double length)mm, 0 or more
void SetOverGirdle(double overGirdle)mm, signed
void SetOverGirdleMiddle(double overGirdle)cutters only: mm, signed
void SetShape(string shape)cutters only: U_SHAPE or V_SHAPE
void SetShapeFactor(double factor)cutters only: 0-2
void SetStartHeight(double height)mm, 0 or more (with Keep on, the end too)
void SetStartWidth(double width)mm, 0 or more (with Keep on, the end too)

IWeddingRing

Section.

One ring of a wedding set, or the single band of a plain 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”; a plain band also “Scalloped”
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”; a plain band also “Scalloped” (its cutters: IPlainBand)
void SetShape(string shape)”Round” or “Princess”
void SetVertical(double vertical)