CAM.activeContainer Property

Parent Object: CAM

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::cam" and the header file is <Cam/CAM/CAM.h>

Description

Active container of the CAM document. It can be a Setup, a CAMFolder, or a CAMPattern - descendants of OperationBase. If there is no active container, this property will return null. The active container is the one that is currently selected in the browser or the one that is being edited in the timeline. Gives null if there is no active container.

Syntax

"cAM_var" is a variable referencing a CAM object.
# Get the value of the property.
propertyValue = cAM_var.activeContainer
"cAM_var" Is a variable referencing a CAM Object.
#include <Cam/CAM/CAM.h>

// Get the value of the property.
Ptr<OperationBase> propertyValue = cAM_var->activeContainer();
"cAM_var" Is a variable referencing a CAM Object.
// Get the value of the property.
propertyValue = cAM_var.activeContainer;

Property Value

This is a read only property whose value is an OperationBase.

Version

Introduced in version November 2026