Skip to content

Python package

ra.advanced_cathedral

Cathedral shanks with station-by-station control.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.AdvancedCathedralApi.

Functions

Function
all()AdvancedCathedral handles for every object of this kind in the active document (empty when there is no document).
by_layer()AdvancedCathedral 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 an advanced cathedral shank — the ArtisanAdvancedCathedral tool, headless: the cathedral band with a fully parametric arm and bridge, plus an optional stone run.
find()The handle for id, or None when the id does not belong to an object of this kind.
selected()AdvancedCathedral handles for the objects of this kind currently selected in the active document.

ra.advanced_cathedral.all()

ra.advanced_cathedral.all() -> List[AdvancedCathedral]

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

ra.advanced_cathedral.by_layer()

ra.advanced_cathedral.by_layer(layer_name: str) -> List[AdvancedCathedral]

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

ParameterType
layer_namestrrequired

ra.advanced_cathedral.count()

ra.advanced_cathedral.count() -> int

Number of objects of this kind in the active document.

ra.advanced_cathedral.create()

ra.advanced_cathedral.create(finger_diameter=None, arm_height=None, arm_opening=None, tip_inclination=None, bridge_width=None, bridge_thickness=None, with_gems=None, gem_size=None, profile=None, plane=None, element=None) -> AdvancedCathedral

Builds an advanced cathedral shank — the ArtisanAdvancedCathedral tool, headless: the cathedral band with a fully parametric arm and bridge, plus an optional stone run. Millimetres / degrees; omitting keeps the tool default (or the user’s saved defaults). finger_diameter 0 = the document’s finger size. with_gems turns the stone run on. Returns an AdvancedCathedral handle: its ~25 setters cover the rest of the model. element = name of a saved element (ra.elements.list) to start from; explicit arguments override it.

ParameterType
finger_diameterfloatoptional — None = the tool default
arm_heightfloatoptional — None = the tool default
arm_openingfloatoptional — None = the tool default
tip_inclinationfloatoptional — None = the tool default
bridge_widthfloatoptional — None = the tool default
bridge_thicknessfloatoptional — None = the tool default
with_gemsbooloptional — None = the tool default
gem_sizefloatoptional — None = the tool default
profilestroptional — None = the tool default
planeOptional[PlaneLike]optional — None = the tool default
elementstroptional — None = the tool default

ra.advanced_cathedral.find()

ra.advanced_cathedral.find(id: IdLike) -> AdvancedCathedral

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

ParameterType
idIdLikerequired

ra.advanced_cathedral.selected()

ra.advanced_cathedral.selected() -> List[AdvancedCathedral]

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

Handles

Objects returned by the functions above. Assigning a settable property regenerates the object; the change is one undo step inside ra.transaction().

AdvancedCathedral (handle)

Advanced cathedral shank: like the classic cathedral, but the band’s cross-section is defined by editable stations along the arm instead of a single fixed profile. Multiple gems, so no single MotherGem.

PropertyTypeSettable
gem_gradientAdvancedCathedralGemGradient
gemsCathedralGemsThe gems row uses the same model as the classic cathedral.
layer_namestr
mother_gem_idstr
object_typestr
positionPoint3d
ring_diameter_mmfloat
ring_size_labelstr
ring_size_regionstr
shankAdvancedCathedralShankParameter sections — each is a live view over the shank’s stored parameters; their setters regenerate the shank in place (same Guid) and call LicenseGate.RequireValid() first. Millimetres.
Method
delete()
move(translation: VectorLike)
set_element(element: str)Applies a saved AdvancedCathedralShank element (ra.elements.list(“AdvancedCathedralShank”)) to this shank: its parameters replace the current ones, the ring size stays, and the shank regenerates in place (same id).

Plus what every handle has: id, delete(), update(**kwargs), parameters(), equality and hashing by id, and raw (the underlying .NET object).

AdvancedCathedralGemGradient (section)

How stone size and prongs vary along the gem run.

PropertyTypeSettable
enabledboolyes
end_prong_countintyes
gem_size_endfloatmm
gem_size_middlefloatmm
gem_size_startfloatmm
middle_positionfloatyes0..1
pointsintyes2 = start/end, 3 = start/middle/end
prong_distancefloatyesmm
prong_growfloatyesmm
prong_min_diameterfloatyesmm
prong_spacingfloatyesmm
Method
set_gem_sizes(start: float, middle: float, end: float)

CathedralGems (section)

The pavé row a cathedral carries along its top — one run per arm.

PropertyTypeSettable
anglefloatyesdegrees of the band covered by gems (180 = top half)
automatic_prong_diameterboolyes
bright_cutfloatyesbright-cut width, mm
double_prong_settingboolyes
drill_allow_intersectionboolyes
drill_enabledboolyes
drill_heightfloatyesmm
drill_typestryes”NONE”, “ROUND” or “QUAD”
drill_visibleboolyesbake the drill cutters as visible objects
drill_widthfloatyesmm
enabledboolyes
extension_for_manufacturingfloatyesmm
gem_insidefloatyeshow deep the gems sit inside, mm
gem_shapestryes”ROUND”, “PRINCESS”, …
gem_sizefloatyesmm
inner_heightfloatyesinner channel height, mm
inner_marginfloatyesinner margin, mm
inner_widthfloatyesinner channel width, mm
marginfloatyesside margin, mm
min_distancefloatyesminimum distance between gems, mm
prong_diameterfloatyesmm — used when AutomaticProngDiameter is False
prong_heightfloatyesmm
prong_typestryes”NONE”, “SHARED” or “SCALLOPED”
scallop_gem_heightfloat
scallop_gem_widthfloatScalloped-setting proportions (percentages, not mm).
scallop_prong_heightfloat
scallop_prong_widthfloat
scallop_rail_heightfloat
scallop_rail_widthfloat
scallop_remove_channelboolyes
verticalfloatyesvertical displacement of the row, mm
Method
set_scallop_gem(width: float, height: float)
set_scallop_prong(width: float, height: float)
set_scallop_rail(width: float, height: float)

AdvancedCathedralShank (section)

The band: the stations that shape it, the arm and the bridge.

PropertyTypeSettable
arm_heightfloatyesmm
arm_openingfloatyesmm
bridge_anglefloatyesdegrees
bridge_diameterfloatyesmm
bridge_enabledboolyes
bridge_filletfloatyesmm
bridge_open_anglefloatyesdegrees
bridge_thicknessfloatyesmm
bridge_widthfloatyesmm
shared_profileboolyesevery station uses the same profile asset
stationsList[AdvancedCathedralStation]yes
tangent_pointfloatyes1 = 90 degrees, 0 = 140, -1 = 190
tip_inclinationfloatyes
tip_roundfloatyesmm
Method
set_profile(asset_name: str)applies to every station — list them with ra.assets.list(“RING_PROFILE”)
set_station(index: int, position: float, width: float, height: float, profile_name=None)