NCProgram.isOptional Property

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

Description

Gets and sets the "Optional" property value of the operation. Gets/sets true if the operation is optional.

Syntax

"nCProgram_var" is a variable referencing a NCProgram object.

# Get the value of the property.
propertyValue = nCProgram_var.isOptional

# Set the value of the property.
nCProgram_var.isOptional = propertyValue
"nCProgram_var" is a variable referencing a NCProgram object.
#include <Cam/NCProgram/NCProgram.h>

// Get the value of the property.
boolean propertyValue = nCProgram_var->isOptional();

// Set the value of the property, where value_var is a boolean.
bool returnValue = nCProgram_var->isOptional(value_var);

Property Value

This is a read/write property whose value is a boolean.

Version

Introduced in version April 2023