CAMParameters.itemByName Method

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

Description

Returns the parameter of the specified id (internal name).

Syntax

"cAMParameters_var" is a variable referencing a CAMParameters object.
returnValue = cAMParameters_var.itemByName(internalName)
"cAMParameters_var" is a variable referencing a CAMParameters object.

#include <Cam/Operations/CAMParameters.h>

returnValue = cAMParameters_var->itemByName(internalName);

Return Value

Type Description
CAMParameter Returns the specified parameter or null in the case where there is no parameter with the specified id.

Parameters

Name Type Description
internalName string The id (internal name) of the parameter.

Samples

Name Description
Additive Manufacturing API Sample

Demonstrates how to automate the creation of an additive FFF manufacturing setup and generate a toolpath.

To run the sample script, have a design with one or more components open in Fusion’s DESIGN workspace. This script will switch the UI from the DESIGN workspace to the MANUFACTURE workspace, create a new Manufacturing Model, and create an Additive setup using that manufacturing model as an input.

The setup will select an FFF 3D printer from Fusion’s machine library and a print setting from the print setting library. All components in the Manufacturing model will be automatically oriented and arranged within the build area of the selected FFF machine. This script will also create support structures, if required, based on the orientation of each component. Finally, the script generates and simulates the additive toolpath for the active setup.

Additive Manufacturing API Sample

Demonstrates how to automate the creation of an additive SLA manufacturing setup.

To run the sample script, have a design with one or more components open in Fusion’s DESIGN workspace. This script will switch the UI from the DESIGN workspace to the MANUFACTURE workspace, create a new Manufacturing Model, and create an Additive setup using that manufacturing model as an input.

The setup will select a SLA 3D printer from Fusion’s machine library and a print setting from the print setting library. All components in the Manufacturing model will be automatically oriented and arranged within the build area of the selected FFF machine. This script will also create support structures, based on the orientation of each component.

The support and orientation operations are created from a template. The script further demonstrates how to wrap script code into a command such that only one undo entry is created for the entire script instead of one entry per internal action.

CAM Parameter Modification API Sample Demonstrates changing parameters of existing toolpaths.
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 September 2020