ConstructionGroups.add Method

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

Description

Creates a new group (folder) to organize construction geometry within the Construction node in the browser. Both arguments are optional. If a name is not provided, Fusion assigns a default name that can be changed later using the name property of the returned group. If a set of construction geometry is provided, those items are moved into the newly created group; if an item is already a member of another group it is moved out of that group and into the new one.

Syntax

"constructionGroups_var" is a variable referencing a ConstructionGroups object.

# Uses no optional arguments.
returnValue = constructionGroups_var.add()

# Uses optional arguments.
returnValue = constructionGroups_var.add(name, items)
"constructionGroups_var" is a variable referencing a ConstructionGroups object.

#include <Fusion/Components/ConstructionGroups.h>

// Uses no optional arguments.
returnValue = constructionGroups_var->add();

// Uses optional arguments.
returnValue = constructionGroups_var->add(name, items);
"constructionGroups_var" is a variable referencing a ConstructionGroups object.

// Uses no optional arguments.
returnValue = constructionGroups_var.add();

// Uses Optional arguments.
returnValue = constructionGroups_var.add(name, items);

Return Value

Type Description
ConstructionGroup Returns the newly created ConstructionGroup or null if the creation failed.

Parameters

Name Type Description
name string The name to use for the new group. If this is an empty string, Fusion assigns a default name.

This is an optional argument whose default value is "".
items Base[] An array of ConstructionPlane, ConstructionAxis, ConstructionPoint, and/or ConstructionGroup objects to move into the new group. If this is null or empty, an empty group is created.

This is an optional argument whose default value is null.

Version

Introduced in version November 2026