AdditiveFEAOperationInput.addSolverFileContent Method

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

Description

Add a file with contents encoded as base64 to the solver's working directory. This can be used to create PRM files or other resource files that the solver needs.

Syntax

"additiveFEAOperationInput_var" is a variable referencing an AdditiveFEAOperationInput object.

 = additiveFEAOperationInput_var.addSolverFileContent(destFileName, fileContentsBase64)
"additiveFEAOperationInput_var" is a variable referencing an AdditiveFEAOperationInput object.

#include <Cam/AdditiveFEA/AdditiveFEAOperationInput.h>

additiveFEAOperationInput_var->addSolverFileContent(destFileName, fileContentsBase64);
"additiveFEAOperationInput_var" is a variable referencing an AdditiveFEAOperationInput object.

 = additiveFEAOperationInput_var.addSolverFileContent(destFileName, fileContentsBase64);

Parameters

Name Type Description
destFileName string The name of the resource file. This name must match the card that refers to the resource, e.g. in PRMsCard.
fileContentsBase64 string The contents of the resource file, encoded as a base64 string. With PRM files for example, you can either get this string from the print settings using base64PRMData(), or generate a new PRM using AdditiveFEAGenerationType::PRM.

Samples

Name Description
Additive MPBF FEA Process Simulation API Sample

Demonstrates how to automate an additive Metal Powder Bed Fusion (MPBF) thermo-mechanical process simulation using the Additive FEA API.

The script creates a new Fusion design containing a simple box body, switches to the MANUFACTURE workspace, and creates an Additive setup using the Autodesk Generic MPBF machine and the MPBF 60 micron print setting from Fusion's library.

It then constructs an FEA input deck with the AdditiveFEADeckBuilder, configuring a thermo-mechanical analysis (layers per element, coarsening generations, adaptivity, STL tolerance, ambient and final temperatures, build plate Z bounds and XY extension, convection, and an STL map). The deck is applied to a process simulation operation, the PRM file derived from the print settings is attached, and the simulation is run via generateToolpath. The script parses signalFileContents to confirm a successful finish, then builds a second deck and uses AdditiveFEAUtility.warpTriangleMesh to generate a warped triangle mesh from the simulation results.

Version

Introduced in version April 2026