.NET API
SilhouetteRingApi
Rings extruded from a frontal profile.
from ArtisanPlugin.Scripting import SilhouetteRingApi
See also the Python package, ra.silhouette_ring.
Methods
| Method | |
|---|---|
All | ISilhouetteRing handles for every object of this kind in the active document (empty when there is no document). |
ByLayer | ISilhouetteRing 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 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. |
Find | The handle for id, or null when the id does not belong to an object of this kind. |
Selected | ISilhouetteRing 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).
| Parameter | Type | Default |
|---|---|---|
layerName | string | required |
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.
| Parameter | Type | Default |
|---|---|---|
topLength | double | 0 |
sideLength | double | 0 |
bottomLength | double | 0 |
topThickness | double | 0 |
bottomThickness | double | 0 |
hollow | bool? | null |
linearThickness | double | 0 |
angle | double | double.NaN |
symmetry | string | null |
advancedTopThickness | double | 0 |
advancedLateralThickness | double | 0 |
frontalProfile | string | null |
lateralProfile | string | null |
fingerDiameter | double | 0 |
plane | Plane? | null |
silhouette | string | null |
tableWidth | double | 0 |
shoulder | string | null |
shoulderBulge | double | double.NaN |
cornerRadius | double | double.NaN |
curveId | Guid? | null |
fitCurve | bool? | null |
edgeFillet | double | double.NaN |
comfortFit | double | double.NaN |
hollowSpan | double | double.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.
| Parameter | Type | Default |
|---|---|---|
id | Guid | required |
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.
| Property | Type | ||
|---|---|---|---|
Angle | double | get | degrees the silhouette is turned around the finger axis |
BottomThickness | double | get | mm of metal under the finger at the bottom |
BottomWidth | double | get | mm, band width at the bottom |
ComfortFit | double | get | mm, radius softening the two edges of the finger hole; 0 = sharp |
CornerRadius | double | get | mm, radius rounding the corners of the silhouette (PARAMETRIC); 0 = sharp |
EdgeFillet | double | get | mm, radius softening the outer edges of the band; 0 = sharp |
FitCurve | bool | get | CURVE: true = the curve is scaled to the three thicknesses instead of used as drawn |
FrontalProfileName | string | get | EXTERNAL_RING_PROFILE asset name (PROFILE), "" when unset |
HasCurve | bool | get | true when the ring carries its own silhouette curve (set with SetCurveId) |
Hollow | bool | get | true = the band is carved from the finger side |
HollowLateralThickness | double | get | mm, wall left at the sides by an ASYMMETRIC hollow |
HollowSpan | double | get | degrees of arc, centred on the top, the hollow carves; 360 = the whole band |
HollowSymmetry | string | get | “SYMMETRIC” (one wall: WallThickness) or “ASYMMETRIC” (HollowTopThickness / HollowLateralThickness) |
HollowTopThickness | double | get | mm, wall left at the top by an ASYMMETRIC hollow |
Id | Guid | get | (from IParametricObject) |
LateralProfileName | string | get | RING_SIDE_CURVE asset name: the bend of the band’s edge between its two widths |
LayerName | string | get | (from IParametricObject) |
MotherGemId | Guid | get | (from IParametricObject) |
ObjectType | string | get | (from IParametricObject) |
Position | Point3d | get | (from IParametricObject) |
RingDiameterMm | double | get | |
RingSizeLabel | string | get | |
RingSizeRegion | string | get | |
Shoulder | string | get | “STRAIGHT” or “CURVED” (PARAMETRIC) |
ShoulderBulge | double | get | mm the middle of a CURVED shoulder leaves the straight line; negative = inwards |
SideThickness | double | get | mm of metal at the sides of the finger (PROFILE, or CURVE fitted to the ring size) |
Silhouette | string | get | “PARAMETRIC” (flat table, round bottom, tangent shoulders), “PROFILE” (an EXTERNAL_RING_PROFILE asset) or “CURVE” (the user’s own closed curve) |
TableWidth | double | get | mm, width of the flat table (PARAMETRIC) |
TopThickness | double | get | mm of metal over the finger at the top |
TopWidth | double | get | mm, band width at the top, along the finger axis |
WallThickness | double | get | mm, 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. |