AssemblyComponentGeometryInput.bodies Property

Parent Object: AssemblyComponentGeometryInput

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::cam" and the header file is <Cam/Tools/AssemblyComponentGeometryInput.h>

Description

Gets and sets the bodies whose combined shape defines the geometry of the tool component. At least one body must be provided when passed into setGeometry, and all of them must belong to the same open document so that they share the same document coordinate space.

Syntax

"assemblyComponentGeometryInput_var" is a variable referencing an AssemblyComponentGeometryInput object.
# Get the value of the property.
propertyValue = assemblyComponentGeometryInput_var.bodies

# Set the value of the property.
assemblyComponentGeometryInput_var.bodies = propertyValue
"assemblyComponentGeometryInput_var" Is a variable referencing an AssemblyComponentGeometryInput Object.
#include <Cam/Tools/AssemblyComponentGeometryInput.h>

// Get the value of the property.
std::vector<BRepBody> propertyValue = assemblyComponentGeometryInput_var->bodies();

// Set the value of the property, where value_var is a BRepBody.
bool returnValue = assemblyComponentGeometryInput_var->bodies(value_var);
"assemblyComponentGeometryInput_var" Is a variable referencing an AssemblyComponentGeometryInput Object.
// Get the value of the property.
propertyValue = assemblyComponentGeometryInput_var.bodies;

// Set the value of the property.
assemblyComponentGeometryInput_var.bodies = propertyValue;

Property Value

This is a read/write property whose value is an array of type BRepBody.

Version

Introduced in version November 2026