MachineLibrary.importMachine Method

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

Description

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

Syntax

"machineLibrary_var" is a variable referencing a MachineLibrary object.
returnValue = machineLibrary_var.importMachine(machine, destinationUrl, machineName)
"machineLibrary_var" is a variable referencing a MachineLibrary object.

#include <Cam/Machine/MachineLibrary.h>

returnValue = machineLibrary_var->importMachine(machine, destinationUrl, machineName);

Return Value

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

Parameters

Name Type Description
machine Machine The machine that should be imported.
destinationUrl URL The URL to the folder where to save the machine.
machineName string The name of the machine that should be created due to the import. The name can be extended if the asset already exists at given location to ensure a unique name.

Version

Introduced in version April 2023