Skip to content

Python package

ra.profile_sweep

Sweeps of a profile along rails.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.ProfileSweepApi.

Functions

Function
create()curve_ids are the closed profiles, in sweep order (at least 2).

ra.profile_sweep.create()

ra.profile_sweep.create(curve_ids: Sequence[IdLike], start_cap=None, end_cap=None, start_cap_height=None, end_cap_height=None, start_continuity=None, end_continuity=None, start_flip=None, end_flip=None, symmetry=None, sub_d=None, sub_d_segments=None, sub_d_rail_segments=None) -> List[str]

curve_ids are the closed profiles, in sweep order (at least 2). Caps are “NONE”, “FLAT” or “ROUND” per side (default ROUND, height 0.2). Continuities are 0..4 (G0 position .. G4; default 1 tangency, -1 keeps it). symmetry is “NONE”, “VERTICAL” (mirror world YZ), “HORIZONTAL” (mirror world ZX) or “QUAD” (both). subD True outputs a SubD instead of a Brep (caps do not apply); segments default 32 cross-section / 10 rail. Returns the ids of the created objects (Breps are parametric ProfileSweep custom objects; the source curves stay untouched).

ParameterType
curve_idsSequence[IdLike]required
start_capstroptional — None = the tool default
end_capstroptional — None = the tool default
start_cap_heightfloatoptional — None = the tool default
end_cap_heightfloatoptional — None = the tool default
start_continuityintoptional — None = the tool default
end_continuityintoptional — None = the tool default
start_flipbooloptional — None = the tool default
end_flipbooloptional — None = the tool default
symmetrystroptional — None = the tool default
sub_dbooloptional — None = the tool default
sub_d_segmentsintoptional — None = the tool default
sub_d_rail_segmentsintoptional — None = the tool default