MachineParts.add Method

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

Description

Add a new part to this collection. The part's parent will be set to the owner of this collection, or null if this is the root parts collection.

If the passed MachinePartInput has a MachineAxisInput a new MachineAxis will be created.

Syntax

"machineParts_var" is a variable referencing a MachineParts object.
returnValue = machineParts_var.add(partInput)
"machineParts_var" is a variable referencing a MachineParts object.

#include <Cam/Machine/MachineParts.h>

returnValue = machineParts_var->add(partInput);

Return Value

Type Description
MachinePart Returns the newly created MachinePart or null if creation failed.

Parameters

Name Type Description
partInput MachinePartInput Part input object used to create the new MachinePart.

Version

Introduced in version April 2023