Scripting API
IPeghead
Returned by PegheadApi — a peghead setting on one mother gem. Adds its values and their setters to IGemSetting; each setter regenerates the peghead in place (same Guid), millimetres. An edit that cannot be built, or would build an invalid polysurface, is undone and throws.
| Member | Meaning |
|---|---|
Prongs, SetProngs(prongs) | Prong count. Each stone shape has its own counts (round 3, 4, -4, 6; pear 3, 5; cushion 4…); another one is rejected with the valid list. -4 = 4 prongs at 45 degrees |
Height, SetHeight(height) | Height, mm — greater than the height over the girdle |
Thickness, SetThickness(thickness) | Prong thickness, mm — at the top, when they taper |
ThicknessBottom, SetThicknessBottom(thicknessBottom) | Prong thickness at the bottom, mm, to taper the prongs. 0 = no taper |
ProngRotation, SetProngRotation(prongRotation) | Degrees the prongs are turned around the stone |
GirdleWidth, SetGirdleWidth(girdleWidth) | Girdle width, mm |
OverGirdleHeight, SetOverGirdleHeight(overGirdleHeight) | Height over the girdle, mm |
GemInside, SetGemInside(gemInside) | How deep the gem sits inside, mm |
Seat, SetSeat(seat) | The seat of the stone cut into the prongs (shows with GemInside above 0) |
SeatAngle, SetSeatAngle(seatAngle) | Angle of the seat below the girdle, 10 to 80 degrees |
GalleryRail, SetGalleryRail(galleryRail) | The rail under the stone that ties the prongs together |
GalleryPosition, SetGalleryPosition(galleryPosition) | How far below the girdle the middle of the rail is, mm. 0 = automatic |
GalleryHeight, SetGalleryHeight(galleryHeight) | Height of the rail, mm |
GalleryWidth, SetGalleryWidth(galleryWidth) | Width of the rail, mm |
ProfileName, SetProfile(assetName) | The PEGHEAD_PROFILE asset |
SetElement(element) | Applies a saved Peghead element; the mother gem stays |