Operations.compatibleStrategies Property

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

Description

Gets a list of the strategies that are compatible with the parent setup. This only returns strategies that are allowed to be added based on the active Setup or CAMFolder.

Note: There may be cases where a compatible strategy might not be allowed to be created due to licensing or other issues like disabled preview features.

Syntax

"operations_var" is a variable referencing an Operations object.

# Get the value of the property.
propertyValue = operations_var.compatibleStrategies
"operations_var" is a variable referencing an Operations object.
#include <Cam/Operations/Operations.h>

// Get the value of the property.
std::vector<Ptr<OperationStrategy>> propertyValue = operations_var->compatibleStrategies();

Property Value

This is a read only property whose value is an array of type OperationStrategy.

Samples

Name Description
Manufacturing Workflow API Sample Manufacturing Workflow API Sample

This sample script starts by creating a simple component which is then used to describe a milling workflow. It creates a setup, a few operations, pick some tools from a Fusion sample tool library using loops and queries and ends up post-processing the operations out using an NC Program.

Version

Introduced in version April 2023