Skip to content

.NET API

BooleanApi

Artisan booleans, headless. Unlike plain rs.Boolean*, these bake the Artisan boolean group: the result breps live in a group carrying RaObjectUserData (“Boolean” + the operation parameters), the originals are HIDDEN (not deleted), and ArtisanEdit / ArtisanBooleanUpdate can dismantle and recompute the operation later. Same engine as the ArtisanBooleanUnion/Difference/Intersection/Split commands.

from ArtisanPlugin.Scripting import BooleanApi

See also the guide, API Reference › Booleans, and the Python package, ra.boolean.

Methods

Method
DifferenceSubtracts cutterIds from targetIds.
IntersectionIntersection of the two sets.
SplitSplits targetIds with cutterIds.
UnionUnion of two or more solids.

Difference

IReadOnlyList<Guid> BooleanApi.Difference(
    IEnumerable<Guid> targetIds,
    IEnumerable<Guid> cutterIds)

Subtracts cutterIds from targetIds. Returns the result brep ids.

ParameterTypeDefault
targetIdsIEnumerable<Guid>required
cutterIdsIEnumerable<Guid>required

Returns IReadOnlyList<Guid>.

Intersection

IReadOnlyList<Guid> BooleanApi.Intersection(
    IEnumerable<Guid> targetIds,
    IEnumerable<Guid> cutterIds)

Intersection of the two sets. Returns the result brep ids.

ParameterTypeDefault
targetIdsIEnumerable<Guid>required
cutterIdsIEnumerable<Guid>required

Returns IReadOnlyList<Guid>.

Split

IReadOnlyList<Guid> BooleanApi.Split(
    IEnumerable<Guid> targetIds,
    IEnumerable<Guid> cutterIds)

Splits targetIds with cutterIds. Returns the result brep ids.

ParameterTypeDefault
targetIdsIEnumerable<Guid>required
cutterIdsIEnumerable<Guid>required

Returns IReadOnlyList<Guid>.

Union

IReadOnlyList<Guid> BooleanApi.Union(IEnumerable<Guid> objectIds)

Union of two or more solids. Returns the ids of the result breps.

ParameterTypeDefault
objectIdsIEnumerable<Guid>required

Returns IReadOnlyList<Guid>.