Skip to content

.NET API

SilhouetteRingApi

Rings extruded from a frontal profile.

from ArtisanPlugin.Scripting import SilhouetteRingApi

See also the Python package, ra.silhouette_ring.

Methods

Method
AllISilhouetteRing handles for every object of this kind in the active document (empty when there is no document).
ByLayerISilhouetteRing 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 silhouette ring (the ArtisanSilhouetteRing tool, formerly ArtisanRingExtrude, headless): a frontal silhouette around the finger hole is extruded along the finger axis and cut by a lateral silhouette (a RING_SIDE_CURVE asset) — the quick way to get a wide, sculpted band.
FindThe handle for id, or null when the id does not belong to an object of this kind.
SelectedISilhouetteRing handles for the objects of this kind currently selected in the active document.

All

IReadOnlyList<ISilhouetteRing> SilhouetteRingApi.All()

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

Returns IReadOnlyList<ISilhouetteRing>.

ByLayer

IReadOnlyList<ISilhouetteRing> SilhouetteRingApi.ByLayer(string layerName)

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

ParameterTypeDefault
layerNamestringrequired

Returns IReadOnlyList<ISilhouetteRing>.

Count

int SilhouetteRingApi.Count()

Number of objects of this kind in the active document.

Returns int.

Create

ISilhouetteRing SilhouetteRingApi.Create(
    double topLength = 0,
    double sideLength = 0,
    double bottomLength = 0,
    double topThickness = 0,
    double bottomThickness = 0,
    bool? hollow = null,
    double linearThickness = 0,
    double angle = double.NaN,
    string symmetry = null,
    double advancedTopThickness = 0,
    double advancedLateralThickness = 0,
    string frontalProfile = null,
    string lateralProfile = null,
    double fingerDiameter = 0,
    Plane? plane = null,
    string silhouette = null,
    double tableWidth = 0,
    string shoulder = null,
    double shoulderBulge = double.NaN,
    double cornerRadius = double.NaN,
    Guid? curveId = null,
    bool? fitCurve = null,
    double edgeFillet = double.NaN,
    double comfortFit = double.NaN,
    double hollowSpan = double.NaN)

Builds a silhouette ring (the ArtisanSilhouetteRing tool, formerly ArtisanRingExtrude, headless): a frontal silhouette around the finger hole is extruded along the finger axis and cut by a lateral silhouette (a RING_SIDE_CURVE asset) — the quick way to get a wide, sculpted band. silhouette picks where the frontal outline comes from. Omitted keeps the historic PROFILE (or the user’s saved defaults): PROFILE = an EXTERNAL_RING_PROFILE asset (frontalProfile) grown around the finger by topLength / sideLength / bottomLength; PARAMETRIC = a flat table tableWidth wide (10) sitting topLength over the finger, a round bottom bottomLength thick and shoulders that land tangent on it, shoulder STRAIGHT (default) | CURVED with shoulderBulge (0.5, negative = inwards, NaN = keep), corners rounded by cornerRadius (NaN = keep, 0 = sharp); CURVE = the closed planar curve curveId of the document, used as drawn around the finger axis, or scaled to the three lengths when fitCurve is true. Passing curveId alone implies CURVE. edgeFillet softens the outer edges of the band and comfortFit the two edges of the finger hole (mm, NaN = keep, 0 = sharp). hollowSpan (degrees, NaN = keep, 360 = whole band) limits the hollow to an arc centred on the top, leaving the bottom solid. Millimetres; 0 keeps the tool default (or the user’s saved defaults): topLength 2, sideLength 2, bottomLength 2 (metal over the finger at top / sides / bottom), topThickness 2, bottomThickness 2 (band width, frontal view). hollow true carves the inside with linearThickness (2), angle (degrees, NaN = 0), symmetry SYMMETRIC (default) | ASYMMETRIC with advancedTopThickness / advancedLateralThickness (2). frontalProfile / lateralProfile pick assets by name (see AssetsApi). fingerDiameter 0 = document ring size. plane omitted = world XY. Returns an ISilhouetteRing handle to the new ring; its setters edit the ring in place.

ParameterTypeDefault
topLengthdouble0
sideLengthdouble0
bottomLengthdouble0
topThicknessdouble0
bottomThicknessdouble0
hollowbool?null
linearThicknessdouble0
angledoubledouble.NaN
symmetrystringnull
advancedTopThicknessdouble0
advancedLateralThicknessdouble0
frontalProfilestringnull
lateralProfilestringnull
fingerDiameterdouble0
planePlane?null
silhouettestringnull
tableWidthdouble0
shoulderstringnull
shoulderBulgedoubledouble.NaN
cornerRadiusdoubledouble.NaN
curveIdGuid?null
fitCurvebool?null
edgeFilletdoubledouble.NaN
comfortFitdoubledouble.NaN
hollowSpandoubledouble.NaN

Returns ISilhouetteRing.

Find

ISilhouetteRing SilhouetteRingApi.Find(Guid id)

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

ParameterTypeDefault
idGuidrequired

Returns ISilhouetteRing.

Selected

IReadOnlyList<ISilhouetteRing> SilhouetteRingApi.Selected()

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

Returns IReadOnlyList<ISilhouetteRing>.

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.

ISilhouetteRing

Handle — extends IParametricObject.

Silhouette ring (the old Ring Extrude): the outline of the ring seen from the front, around the finger hole, extruded to a band width. Every setter regenerates the ring in place (same id). The names are the ones of the create_silhouette_ring tool: a THICKNESS is metal measured from the finger (top, bottom, side), a WIDTH is the band along the finger axis. SilhouetteRingApi.Create keeps the historic argument names of Ring Extrude, where those were called lengths and thicknesses.

PropertyType
Angledoublegetdegrees the silhouette is turned around the finger axis
BottomThicknessdoublegetmm of metal under the finger at the bottom
BottomWidthdoublegetmm, band width at the bottom
ComfortFitdoublegetmm, radius softening the two edges of the finger hole; 0 = sharp
CornerRadiusdoublegetmm, radius rounding the corners of the silhouette (PARAMETRIC); 0 = sharp
EdgeFilletdoublegetmm, radius softening the outer edges of the band; 0 = sharp
FitCurveboolgetCURVE: true = the curve is scaled to the three thicknesses instead of used as drawn
FrontalProfileNamestringgetEXTERNAL_RING_PROFILE asset name (PROFILE), "" when unset
HasCurveboolgettrue when the ring carries its own silhouette curve (set with SetCurveId)
Hollowboolgettrue = the band is carved from the finger side
HollowLateralThicknessdoublegetmm, wall left at the sides by an ASYMMETRIC hollow
HollowSpandoublegetdegrees of arc, centred on the top, the hollow carves; 360 = the whole band
HollowSymmetrystringget“SYMMETRIC” (one wall: WallThickness) or “ASYMMETRIC” (HollowTopThickness / HollowLateralThickness)
HollowTopThicknessdoublegetmm, wall left at the top by an ASYMMETRIC hollow
IdGuidget(from IParametricObject)
LateralProfileNamestringgetRING_SIDE_CURVE asset name: the bend of the band’s edge between its two widths
LayerNamestringget(from IParametricObject)
MotherGemIdGuidget(from IParametricObject)
ObjectTypestringget(from IParametricObject)
PositionPoint3dget(from IParametricObject)
RingDiameterMmdoubleget
RingSizeLabelstringget
RingSizeRegionstringget
Shoulderstringget“STRAIGHT” or “CURVED” (PARAMETRIC)
ShoulderBulgedoublegetmm the middle of a CURVED shoulder leaves the straight line; negative = inwards
SideThicknessdoublegetmm of metal at the sides of the finger (PROFILE, or CURVE fitted to the ring size)
Silhouettestringget“PARAMETRIC” (flat table, round bottom, tangent shoulders), “PROFILE” (an EXTERNAL_RING_PROFILE asset) or “CURVE” (the user’s own closed curve)
TableWidthdoublegetmm, width of the flat table (PARAMETRIC)
TopThicknessdoublegetmm of metal over the finger at the top
TopWidthdoublegetmm, band width at the top, along the finger axis
WallThicknessdoublegetmm, wall left by a SYMMETRIC hollow
Method
void Delete()(from IParametricObject)
void Move(Vector3d translation)(from IParametricObject)
void SetAngle(double degrees)
void SetBottomThickness(double thickness)
void SetBottomWidth(double width)
void SetComfortFit(double radius)
void SetCornerRadius(double radius)
void SetCurveId(Guid curveId)A closed planar curve of the document becomes the silhouette (copied into the ring) and the mode becomes CURVE
void SetEdgeFillet(double radius)
void SetFitCurve(bool fit)
void SetFrontalProfile(string assetName)EXTERNAL_RING_PROFILE asset by name
void SetHollow(bool hollow)
void SetHollowLateralThickness(double thickness)
void SetHollowSpan(double degrees)degrees, 0 to 360
void SetHollowSymmetry(string symmetry)“SYMMETRIC” or “ASYMMETRIC”
void SetHollowTopThickness(double thickness)
void SetLateralProfile(string assetName)RING_SIDE_CURVE asset by name
void SetShoulder(string shoulder)“STRAIGHT” or “CURVED”
void SetShoulderBulge(double bulge)
void SetSideThickness(double thickness)
void SetSilhouette(string silhouette)“PARAMETRIC”, “PROFILE” or “CURVE” (CURVE needs a curve: SetCurveId)
void SetTableWidth(double width)
void SetTopThickness(double thickness)
void SetTopWidth(double width)
void SetWallThickness(double thickness)
void SetWidth(double width)Band width, top and bottom alike. The widths then set the band: the side curve only adds its bend.