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.

Also used here: IWeddingRing, IWeddingProfile, IWeddingGems.

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
RingIWeddingRingget
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).