Selections.add Method

Parent Object: Selections
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/Selections.h>

Description

Adds the entity to the set of currently selected entities. The user will see the entity become selected in the user interface.

Syntax

"selections_var" is a variable referencing a Selections object.
returnValue = selections_var.add(entity)
"selections_var" is a variable referencing a Selections object.

#include <Core/UserInterface/Selections.h>

returnValue = selections_var->add(entity);

Return Value

Type Description
boolean Returns true if successful.

Parameters

Name Type Description
entity Base The entity to select and add to this selection set.

Version

Introduced in version August 2014