PostLibrary.importPostConfiguration Method

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

Description

Import a given post configuration at a specific location. The post configuration will be stored in the library. Throws an error, if the given URL is read-only.

Syntax

"postLibrary_var" is a variable referencing a PostLibrary object.
returnValue = postLibrary_var.importPostConfiguration(postConfig, destinationUrl, postName)
"postLibrary_var" is a variable referencing a PostLibrary object.

#include <Cam/Post/PostLibrary.h>

returnValue = postLibrary_var->importPostConfiguration(postConfig, destinationUrl, postName);

Return Value

Type Description
URL Returns the URL of the newly imported post configuration, or null if the import failed.

Parameters

Name Type Description
postConfig PostConfiguration The post configuration that should be imported.
destinationUrl URL The URL to the folder where to save the post configuration.
postName string The name of the post configuration that should be created due to the import. The name can be extended if the name already exists at given location to ensure a unique name.

Samples

Name Description
Basic Milling Workflow Sample Demonstrates the creation of a basic milling workflow from script

Demonstrates creating a setup, searching tool library to retrieve a tool, create a couple of machining operations and a NC program, ready for post processing.

Use the 2D Strategies model from the Fusion CAM Samples folder as your CAD model.

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 April 2023