Component.bRepBodies Property

Parent Object: Component

Derived from: BaseComponent.bRepBodies


Defined in namespace "adsk::fusion" and the header file is <Fusion/Components/Component.h>

Description

Returns the B-Rep bodies collection associated with this component.

Syntax

"component_var" is a variable referencing a Component object.
# Get the value of the property.
propertyValue = component_var.bRepBodies
"component_var" Is a variable referencing a Component Object.
#include <Fusion/Components/Component.h>

// Get the value of the property.
Ptr<BRepBodies> propertyValue = component_var->bRepBodies();
"component_var" Is a variable referencing a Component Object.
// Get the value of the property.
propertyValue = component_var.bRepBodies;

Property Value

This is a read only property whose value is a BRepBodies.

Samples

Name Description
Get Volume of Active Design API Sample

Demonstrates traverses through the active design and totals the volume of every body within the design.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version August 2014