Operation.name Property

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

Description

Gets and sets the name of the operation as seen in the browser. This name is unique as compared to the names of all other operations in the document.

Syntax

"operation_var" is a variable referencing an Operation object.

# Get the value of the property.
propertyValue = operation_var.name

# Set the value of the property.
operation_var.name = propertyValue
"operation_var" is a variable referencing an Operation object.
#include <Cam/Operations/Operation.h>

// Get the value of the property.
string propertyValue = operation_var->name();

// Set the value of the property, where value_var is a string.
bool returnValue = operation_var->name(value_var);

Property Value

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

Samples

Name Description
New CAM Operation API Sample Demonstrates adding a new toolpath into the document using an existing CAM template. You can get a sample template here. To use the sample, create a new design and add a block. Switch to the MANUFACTURE workspace and create a setup. Run the script and it will create a new facing operation in the setup.

Version

Introduced in version January 2016