Skip to content

.NET API

SignetRingApi

Signet rings — a flat face carried on a band. Create takes the face and band dimensions; the rest is adjusted through the returned handle.

from ArtisanPlugin.Scripting import SignetRingApi

See also the guide, Shanks › Signet, and the Python package, ra.signet_ring.

Methods

Method
AllISignetRing handles for every object of this kind in the active document (empty when there is no document).
ByLayerISignetRing 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 a signet ring — the ArtisanSignetRing tool, headless.
FindThe handle for id, or null when the id does not belong to an object of this kind.
SelectedISignetRing handles for the objects of this kind currently selected in the active document.

All

IReadOnlyList<ISignetRing> SignetRingApi.All()

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

Returns IReadOnlyList<ISignetRing>.

ByLayer

IReadOnlyList<ISignetRing> SignetRingApi.ByLayer(string layerName)

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

ParameterTypeDefault
layerNamestringrequired

Returns IReadOnlyList<ISignetRing>.

Count

int SignetRingApi.Count()

Number of objects of this kind in the active document.

Returns int.

Create

ISignetRing SignetRingApi.Create(
    double fingerDiameter = 0,
    double width = 0,
    double height = 0,
    double heightPosition = double.NaN,
    double rotation = double.NaN,
    double widthBottomProfile = 0,
    double heightBottomProfile = 0,
    double widthMiddleProfile = 0,
    double heightMiddleProfile = 0,
    bool? recess = null,
    double thickness = 0,
    double innerHeight = 0,
    string profile = null,
    Plane? plane = null,
    string element = null)

Builds a signet ring — the ArtisanSignetRing tool, headless. Millimetres / degrees; 0 keeps the tool default (or the user’s saved defaults). fingerDiameter 0 = the document’s finger size. recess hollows the face; thickness and innerHeight shape that recess. Returns an ISignetRing handle to the new ring. element = name of a saved signet ring element (ElementsApi.List(“SignetRing”)) to start from instead of the tool defaults; explicit arguments override it.

ParameterTypeDefault
fingerDiameterdouble0
widthdouble0
heightdouble0
heightPositiondoubledouble.NaN
rotationdoubledouble.NaN
widthBottomProfiledouble0
heightBottomProfiledouble0
widthMiddleProfiledouble0
heightMiddleProfiledouble0
recessbool?null
thicknessdouble0
innerHeightdouble0
profilestringnull
planePlane?null
elementstringnull

Returns ISignetRing.

Find

ISignetRing SignetRingApi.Find(Guid id)

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

ParameterTypeDefault
idGuidrequired

Returns ISignetRing.

Selected

IReadOnlyList<ISignetRing> SignetRingApi.Selected()

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

Returns IReadOnlyList<ISignetRing>.

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: ISignetFace.

ISignetRing

Handle — extends IParametricObject.

Signet ring: a flat face carried on a band.

PropertyType
FaceISignetFaceget
IdGuidget(from IParametricObject)
LayerNamestringget(from IParametricObject)
MotherGemIdGuidget(from IParametricObject)
ObjectTypestringget(from IParametricObject)
PositionPoint3dget(from IParametricObject)
RingDiameterMmdoubleget
RingSizeLabelstringget
RingSizeRegionstringget
Method
void Delete()(from IParametricObject)
void Move(Vector3d translation)(from IParametricObject)
void SetElement(string element)Applies a saved SignetRing element (ElementsApi.List(“SignetRing”)) to this ring: its parameters replace the current ones, the ring size stays, and the ring regenerates in place (same id).