Skip to content

.NET API

ProfileSweepApi

Parametric sweep through two or more closed profile curves (the ArtisanProfileSweep tool).

from ArtisanPlugin.Scripting import ProfileSweepApi

See also the guide, Accessories › Profile sweep, and the Python package, ra.profile_sweep.

Methods

Method
CreatecurveIds are the closed profiles, in sweep order (at least 2).

Create

IReadOnlyList<Guid> ProfileSweepApi.Create(
    IEnumerable<Guid> curveIds,
    string startCap = null,
    string endCap = null,
    double startCapHeight = 0,
    double endCapHeight = 0,
    int startContinuity = -1,
    int endContinuity = -1,
    bool startFlip = false,
    bool endFlip = false,
    string symmetry = null,
    bool subD = false,
    int subDSegments = 0,
    int subDRailSegments = 0)

curveIds 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).

ParameterTypeDefault
curveIdsIEnumerable<Guid>required
startCapstringnull
endCapstringnull
startCapHeightdouble0
endCapHeightdouble0
startContinuityint-1
endContinuityint-1
startFlipboolfalse
endFlipboolfalse
symmetrystringnull
subDboolfalse
subDSegmentsint0
subDRailSegmentsint0

Returns IReadOnlyList<Guid>.