MachineAxisConfigurations.addLinear Method

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

Description

Add a new linear axis configuration for a kinematics part.

Syntax

"machineAxisConfigurations_var" is a variable referencing a MachineAxisConfigurations object.
returnValue = machineAxisConfigurations_var.addLinear(partId)
"machineAxisConfigurations_var" is a variable referencing a MachineAxisConfigurations object.

#include <Cam/Machine/MachineAxisConfigurations.h>

returnValue = machineAxisConfigurations_var->addLinear(partId);

Return Value

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

Parameters

Name Type Description
partId string ID used to label this axis configuration and link to a part in the kinematics tree. partID must match a part of type AxisMachinePartType in the kinematics tree and the part must be a linear axis.

Version

Introduced in version April 2023