Skip to content

.NET API

PaveShankApi

Multi-row pavé shanks - a classic band (one profile, one size) carrying N automatic rows of pavé stones. Query facade: PaveShankBuilderApi.Create builds one headless; every variant is then scripted from the handle.

from ArtisanPlugin.Scripting import PaveShankApi

See also the guide, Shanks › Pavé shank, and the Python package, ra.pave_shank.

Methods

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

All

IReadOnlyList<IPaveShank> PaveShankApi.All()

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

Returns IReadOnlyList<IPaveShank>.

ByLayer

IReadOnlyList<IPaveShank> PaveShankApi.ByLayer(string layerName)

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

ParameterTypeDefault
layerNamestringrequired

Returns IReadOnlyList<IPaveShank>.

Count

int PaveShankApi.Count()

Number of objects of this kind in the active document.

Returns int.

Find

IPaveShank PaveShankApi.Find(Guid id)

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

ParameterTypeDefault
idGuidrequired

Returns IPaveShank.

Selected

IReadOnlyList<IPaveShank> PaveShankApi.Selected()

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

Returns IReadOnlyList<IPaveShank>.

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.

Also used here: IClassicProfile, IClassicGems, IClassicAdvanced.

IPaveShank

Handle — extends IParametricObject.

Multi-row pavé shank: a classic band with ONE profile and ONE size carrying N automatic rows of round pavé stones on its outer surface. Multiple gems, so no single MotherGem.

PropertyType
AdvancedIClassicAdvancedget
CuttersEnabledboolget
GemsIClassicGemsgetThe stones (GemSize = CENTRAL size, MinDistance, Vertical) and the bead options (TypeProng NONE/SHARED, ProngHeight = bead length, ProngMoveInZ = how far the bead top sits above the girdle, GemInside, ExtensionForManufacturing). AutomaticProngDiameter and ProngDiameter are ignored here: the bead size is Prong.Diameter.
GemsEnabledboolget
IdGuidget(from IParametricObject)
LayerNamestringget(from IParametricObject)
MotherGemIdGuidget(from IParametricObject)
ObjectTypestringget(from IParametricObject)
PositionPoint3dget(from IParametricObject)
ProngIPaveShankProngget
RingDiameterMmdoubleget
RingSizeLabelstringget
RingSizeRegionstringget
RowsIPaveShankRowsgetMulti-row specifics.
TopProfileIClassicProfilegetThe band: its one profile (asset, width, height, type…) and the classic opening (NONE / STRANGLE / CUT).
Method
void Delete()(from IParametricObject)
void Move(Vector3d translation)(from IParametricObject)
void SetCuttersEnabled(bool enabled)
void SetElement(string element)Applies a saved MultiRowShank element (ElementsApi.List(“MultiRowShank”)) to this shank: its band, rows and gems replace the current ones, the ring size stays, and the shank regenerates in place (same id).
void SetGemsEnabled(bool enabled)

IPaveShankRows

Section.

The rows of a multi-row pavé shank: how many, how far apart, the lateral stone size and how far around the ring they run.

PropertyType
Countintgetnumber of rows across the band (1..9); with 3+ the two outermost rows are LATERAL, the rest CENTRAL
Distancedoublegetgap between the stones of two adjacent rows, mm (edge to edge); the row pitch is automatic
EndAngledoublegetdegrees — used when LayoutMode is “SIDE_ANGLE”
LateralGemSizedoublegetstone size of the two outermost rows, mm (only with 3+ rows)
LayoutModestringget”FULL”, “SIDE_ANGLE” or “TOP_ANGLE”
StartAngledoublegetdegrees — used when LayoutMode is “SIDE_ANGLE”
TopAngledoublegettotal arc in degrees — used when LayoutMode is “TOP_ANGLE”
Method
void SetCount(int count)
void SetDistance(double distance)
void SetLateralGemSize(double size)
void SetLayoutMode(string layoutMode)”FULL”, “SIDE_ANGLE” or “TOP_ANGLE”
void SetSideAngles(double startAngle, double endAngle)
void SetTopAngle(double degrees)

IPaveShankProng

Section.

The bead prongs of a multi-row pavé shank. Every bead shares one diameter; the beads between rows sit centred in their hollows, the beads on the band edges and at the row ends are placed for a reference radius and moved by the two offsets.

PropertyType
Diameterdoublegetdiameter of every bead, mm
EdgeOffsetdoublegetedge offset, mm: how far the beads on the band edges (outer sides of the outermost rows) are pushed outward; negative pulls them in
EndOffsetdoublegetend offset, mm: how far the bead past the last stone of each row end is moved along the row; negative pulls it in over the stone
Method
void SetDiameter(double diameter)
void SetEdgeOffset(double offset)
void SetEndOffset(double offset)