Skip to content

.NET API

HingeApi

Hinge (the ArtisanHinge tool). DESTRUCTIVE on the input: the solid is REPLACED by the hinged parts, like the tool’s Accept.

from ArtisanPlugin.Scripting import HingeApi

See also the guide, Accessories › Hinge, and the Python package, ra.hinge.

Methods

Method
Createpoint marks where the hinge goes ON the brep (the tool’s pick-point-on-solid).

Create

IReadOnlyList<Guid> HingeApi.Create(
    Guid brepId,
    Point3d point,
    double diameter = 0,
    double cutDiameter = 0,
    double thickness = 0,
    int numberOfMales = 0,
    double openingAngle = -1)

point marks where the hinge goes ON the brep (the tool’s pick-point-on-solid). Defaults: pin diameter 0.7, cut diameter 4, thickness 1, 1 male, opening angle 10. Returns the ids of the resulting breps.

ParameterTypeDefault
brepIdGuidrequired
pointPoint3drequired
diameterdouble0
cutDiameterdouble0
thicknessdouble0
numberOfMalesint0
openingAngledouble-1

Returns IReadOnlyList<Guid>.