Occurrence.deleteMe Method

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

Description

Deletes the occurrence from the design. If this is the last occurrence referencing a specific Component, the component is also deleted.

Syntax

"occurrence_var" is a variable referencing an Occurrence object.

returnValue = occurrence_var.deleteMe()
"occurrence_var" is a variable referencing an Occurrence object.

#include <Fusion/Components/Occurrence.h>

returnValue = occurrence_var->deleteMe();
"occurrence_var" is a variable referencing an Occurrence object.

returnValue = occurrence_var.deleteMe();

Return Value

Type Description
boolean Returns true if the delete was successful.

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.

Version

Introduced in version August 2014