OccurrenceList.count Property

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

Description

Returns the number of occurrences in the collection.

Syntax

"occurrenceList_var" is a variable referencing an OccurrenceList object.

# Get the value of the property.
propertyValue = occurrenceList_var.count
"occurrenceList_var" is a variable referencing an OccurrenceList object.
#include <Fusion/Components/OccurrenceList.h>

// Get the value of the property.
uinteger propertyValue = occurrenceList_var->count();

Property Value

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

Samples

Name Description
Assembly traversal using recursion API Sample Traverses the entire structure of the currently open assemlby using a recursive function and displays the result in a message box. This will match the occurrence structure seen in the browser.
Get Volume of Active Design API Sample Traverses through the active design and totals the volume of every body within the design.

Version

Introduced in version August 2014