BRepBodies.count Property

Parent Object: BRepBodies
Defined in namespace "adsk::fusion" and the header file is <Fusion/BRep/BRepBodies.h>

Description

Returns the number of bodies in the collection.

Syntax

"bRepBodies_var" is a variable referencing a BRepBodies object.
# Get the value of the property.
propertyValue = bRepBodies_var.count
"bRepBodies_var" Is a variable referencing a BRepBodies Object.
#include <Fusion/BRep/BRepBodies.h>

// Get the value of the property.
uinteger propertyValue = bRepBodies_var->count();
"bRepBodies_var" Is a variable referencing a BRepBodies Object.
// Get the value of the property.
propertyValue = bRepBodies_var.count;

Property Value

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

Samples

Name Description
Delete Empty Components

Demonstrates deletes empty components from the active design.

Before running: Run from Scripts and Add-Ins. This sample may open dialogs or require interactive choices; keep Fusion in the foreground. Use a design with assembly structure (components/occurrences) when the script reads existing geometry; some scripts create their own assembly.

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