Skip to content

Python package

ra.micro_setting

Micro settings (micro-pave heads).

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.MicroSettingApi.

Functions

Function
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.
by_layer()MicroSetting handles on the layer with the given full path (empty when the layer does not exist).
count()Number of objects of this kind in the active document.
create()Builds the micro-setting (pavé infrastructure: cutters, V-cutters, optional channel and row prongs) for a run of small gems — the ArtisanMicroSetting tool, headless.
find()The handle for id, or None when the id does not belong to an object of this kind.
selected()MicroSettings currently selected in the active doc.

ra.micro_setting.all()

ra.micro_setting.all() -> List[MicroSetting]

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.

ra.micro_setting.by_layer()

ra.micro_setting.by_layer(layer_name: str) -> List[MicroSetting]

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

ParameterType
layer_namestrrequired

ra.micro_setting.count()

ra.micro_setting.count() -> int

Number of objects of this kind in the active document.

ra.micro_setting.create()

ra.micro_setting.create(gem_ids=None, cutters=None, v_cutters=None, channel=None, row_prongs=None) -> List[str]

Builds the micro-setting (pavé infrastructure: cutters, V-cutters, optional channel and row prongs) for a run of small gems — the ArtisanMicroSetting tool, headless. gem_ids None/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 None 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.

ParameterType
gem_idsSequence[IdLike]optional — None = the tool default
cuttersOptional[bool]optional — None = the tool default
v_cuttersOptional[bool]optional — None = the tool default
channelOptional[bool]optional — None = the tool default
row_prongsOptional[bool]optional — None = the tool default

ra.micro_setting.find()

ra.micro_setting.find(id: IdLike) -> MicroSetting

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

ParameterType
idIdLikerequired

ra.micro_setting.selected()

ra.micro_setting.selected() -> List[MicroSetting]

MicroSettings currently selected in the active doc.

Handles

Objects returned by the functions above. Assigning a settable property regenerates the object; the change is one undo step inside ra.transaction().

MicroSetting (handle)

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 ra.micro_setting.create (and Delete) to change one.

PropertyTypeSettable
channelMicroSettingChannel
channel_enabledbool
cuttersMicroSettingCutters
cutters_enabledbool
layer_namestr
mother_gem_idstr
object_typestr
positionPoint3d
row_prongsMicroSettingRowProngs
row_prongs_enabledbool
v_cuttersMicroSettingCutters
v_cutters_enabledbool
Method
delete()
move(translation: VectorLike)

Plus what every handle has: id, delete(), update(**kwargs), parameters(), equality and hashing by id, and raw (the underlying .NET object).

MicroSettingChannel (section)

The channel rail running under the stones.

PropertyTypeSettable
closebool
enabledbool
end_bendfloatsigned
end_extensionfloatsigned
end_heightfloat
end_over_girdlefloatsigned
end_widthfloat
flat_endsbool
keepbool
precisebool
shapestrUShape, VShape, Square, Trapezoidal, FrenchSetting
shape_factorfloat
start_bendfloatsigned
start_extensionfloatsigned
start_heightfloat
start_over_girdlefloatsigned
start_widthfloat

MicroSettingCutters (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.

PropertyTypeSettable
enabledbool
end_heightfloatmm
end_widthfloatmm
keepboolthe cutter solids are kept instead of booleaned
lengthfloatmm
over_girdlefloatmm, signed
over_girdle_middlefloatmm, signed
shapestrcutters only: U_SHAPE, V_SHAPE, SQUARE, TRAPEZOIDAL, FRENCH_SETTING
shape_factorfloatcutters only
start_heightfloatmm
start_widthfloatmm
width_by_percentageboolcutters only: width sized as a % of each stone
width_percentagefloatcutters only

MicroSettingRowProngs (section)

The prongs shared between consecutive stones.

PropertyTypeSettable
allow_collisionsbool
closebool
diameterfloatmm
diameter_by_percentagebooldiameter sized as a % of the gap between stones
enabledbool
height_over_girdlefloatmm, signed
height_under_girdlefloatmm, signed
inside_percentagefloat
smart_adaptbool