ProjectItem.SetAsSelected operator

Introduced

v6.0

Description

Sets the object as selected (true) or not (false).

Note: This is the Python-compliant version of ProjectItem.Selected. Since Python does not support input parameters on properties, ProjectItem.Selected will fail in Python.

Scripting Syntax

ProjectItem.SetAsSelected( BranchFlag, Flag );

Parameters

Parameter Type Description
BranchFlag siBranchFlag Specifies whether the object is node-selected or branch-selected.

Applies only to objects such as X3DObject and Models that have children.

Default Value: siNode

Flag Boolean Select or unselect the object.

Applies only to objects such as X3DObject and Models that have children.

See Also

SelectObj Selection