Files
make-cad/docs/skill/references/docs/api/Body.md
T
NiJingzhe b607c85248 feat(product): multi-body parts: a Part holds one Solid or several named bodies
Spike of design-docs/multi-solid-design.md. make_part_rpart(bodies={id: solid})
keeps several solids apart in one Part (not an assembly): Body values with
stable ids, Part.bodies / get_body / body_ids; Part.body raises on a multi-body
part instead of returning one body. Recorded and replayed, pickled for the cell
cache, previewed as one node per body (node/<part>/body:<id>), packaged with a
BRep and topology snapshot per body (solid_cache.bodies; one-body manifests are
byte-identical), drawn as solid child nodes in the package scene, exported to
STEP as one product holding every solid, flattened into assemblies, and weighed
per body by the new measure_part_mass_rmassreport.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 03:57:27 +08:00

424 B

Body

Class Definition

class Body(body_id, solid, name=None)

Source: product/part.py

Import Surface

  • top-level: from simplecadapi import Body

Description

One named solid of a Part.

Body(body_id, solid, name=None): body_id is an identifier unique within the part, solid the body's Solid, name an optional display name. A one-body Part has one Body with the id "body".