Skip to content

.NET API

MicroSettingApi

Micro settings (micro-pave heads).

from ArtisanPlugin.Scripting import MicroSettingApi

See also the guide, Gemsets › Micro setting, and the Python package, ra.micro_setting.

Methods

Method
AllA micro setting is baked as a GROUP carrying RaObjectUserData (both here and in the panel); nothing in the product ever creates a MicroSettingCustomObject, so resolving that type found nothing and every query below returned empty.
ByLayerIMicroSetting 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.
CreateBuilds the micro-setting (pavé infrastructure: cutters, V-cutters, optional channel and row prongs) for a run of small gems — the ArtisanMicroSetting tool, headless.
FindThe handle for id, or null when the id does not belong to an object of this kind.
SelectedMicroSettings currently selected in the active doc.

All

IReadOnlyList<IMicroSetting> MicroSettingApi.All()

A micro setting is baked as a GROUP carrying RaObjectUserData (both here and in the panel); nothing in the product ever creates a MicroSettingCustomObject, so resolving that type found nothing and every query below returned empty.

Returns IReadOnlyList<IMicroSetting>.

ByLayer

IReadOnlyList<IMicroSetting> MicroSettingApi.ByLayer(string layerName)

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

ParameterTypeDefault
layerNamestringrequired

Returns IReadOnlyList<IMicroSetting>.

Count

int MicroSettingApi.Count()

Number of objects of this kind in the active document.

Returns int.

Create

IReadOnlyList<Guid> MicroSettingApi.Create(
    IEnumerable<Guid> gemIds = null,
    bool? cutters = null,
    bool? vCutters = null,
    bool? channel = null,
    bool? rowProngs = null)

Builds the micro-setting (pavé infrastructure: cutters, V-cutters, optional channel and row prongs) for a run of small gems — the ArtisanMicroSetting tool, headless. gemIds null/empty = the currently selected gems; at least one gem is required. The enable flags default to the tool’s behavior (cutters and V-cutters on, channel and row prongs off); pass true/false to override, or null to keep the default (or the user’s saved defaults). Numeric parameters keep the tool defaults. Returns the ids of every object baked (cutters, V-cutters, channel and prongs), all grouped under one MicroSetting group.

ParameterTypeDefault
gemIdsIEnumerable<Guid>null
cuttersbool?null
vCuttersbool?null
channelbool?null
rowProngsbool?null

Returns IReadOnlyList<Guid>.

Find

IMicroSetting MicroSettingApi.Find(Guid id)

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

ParameterTypeDefault
idGuidrequired

Returns IMicroSetting.

Selected

IReadOnlyList<IMicroSetting> MicroSettingApi.Selected()

MicroSettings currently selected in the active doc.

Returns IReadOnlyList<IMicroSetting>.

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.

IMicroSetting

Handle — extends IParametricObject.

A micro setting: the cutters, V-cutters, channel and row prongs cut and built around a run of stones. Each block is a section mirroring the panel’s own. READ-ONLY: the parametric engine has no RegenerateMicroSetting — the only edit path is reopening the panel (2ShapesEdit.EditMicroSetting) — so there are no in-place setters. Recreate with MicroSettingApi.Create (and Delete) to change one.

PropertyType
ChannelIMicroSettingChannelget
ChannelEnabledboolget
CuttersIMicroSettingCuttersget
CuttersEnabledboolget
IdGuidget(from IParametricObject)
LayerNamestringget(from IParametricObject)
MotherGemIdGuidget(from IParametricObject)
ObjectTypestringget(from IParametricObject)
PositionPoint3dget(from IParametricObject)
RowProngsIMicroSettingRowProngsget
RowProngsEnabledboolget
VCuttersIMicroSettingCuttersget
VCuttersEnabledboolget
Method
void Delete()(from IParametricObject)
void Move(Vector3d translation)(from IParametricObject)

IMicroSettingCutters

Section.

The cutters carved under each stone. The same shape describes the plain CUTTERS and the V-CUTTERS; the members marked “cutters only” read as empty/0 on the V-cutters, which have no such parameter.

PropertyType
Enabledboolget
EndHeightdoublegetmm
EndWidthdoublegetmm
Keepboolgetthe cutter solids are kept instead of booleaned
Lengthdoublegetmm
OverGirdledoublegetmm, signed
OverGirdleMiddledoublegetmm, signed
Shapestringgetcutters only: U_SHAPE, V_SHAPE, SQUARE, TRAPEZOIDAL, FRENCH_SETTING
ShapeFactordoublegetcutters only
StartHeightdoublegetmm
StartWidthdoublegetmm
WidthByPercentageboolgetcutters only: width sized as a % of each stone
WidthPercentagedoublegetcutters only

IMicroSettingRowProngs

Section.

The prongs shared between consecutive stones.

PropertyType
AllowCollisionsboolget
Closeboolget
Diameterdoublegetmm
DiameterByPercentageboolgetdiameter sized as a % of the gap between stones
Enabledboolget
HeightOverGirdledoublegetmm, signed
HeightUnderGirdledoublegetmm, signed
InsidePercentagedoubleget
SmartAdaptboolget

IMicroSettingChannel

Section.

The channel rail running under the stones.

PropertyType
Closeboolget
Enabledboolget
EndBenddoublegetsigned
EndExtensiondoublegetsigned
EndHeightdoubleget
EndOverGirdledoublegetsigned
EndWidthdoubleget
FlatEndsboolget
Keepboolget
Preciseboolget
ShapestringgetUShape, VShape, Square, Trapezoidal, FrenchSetting
ShapeFactordoubleget
StartBenddoublegetsigned
StartExtensiondoublegetsigned
StartHeightdoubleget
StartOverGirdledoublegetsigned
StartWidthdoubleget