ManufacturingModels.add Method

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

Description

Create a new ManufacturingModel.

Syntax

"manufacturingModels_var" is a variable referencing a ManufacturingModels object.
returnValue = manufacturingModels_var.add(input)
"manufacturingModels_var" is a variable referencing a ManufacturingModels object.

#include <Cam/ManufacturingModels/ManufacturingModels.h>

returnValue = manufacturingModels_var->add(input);

Return Value

Type Description
ManufacturingModel Returns the newly created ManufacturingModel.

Parameters

Name Type Description
input ManufacturingModelInput A ManufacturingModelInput object that defines the desired ManufacturingModel. Use the createInput method to create a new ManufacturingModelInput object and then use methods on it to define the ManufacturingModel.

Samples

Name Description
Additive Manufacturing FFF 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 MJF API Sample

Demonstrates how to automate the creation of an additive MJF manufacturing setup and arrange components within the build volume of a 3D printer.

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 Arrange using that manufacturing model as an input.

The setup will select an MJF 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 arranged within the build volume of the selected MJF machine.

Additive Manufacturing SLA 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 SLA 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.

Version

Introduced in version April 2023