MachineAvoidGroups.sync Method

Parent Object: MachineAvoidGroups

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::cam" and the header file is <Cam/MachineAvoidSelections/MachineAvoidGroups.h>

Description

Function that synchronizes the selections and properties of the default groups from the current operation. This is needed when there are changes made to parameters that drive the default groups (e.g. Setup model or fixture selection changes to be reflected in the MachineAvoidGroups object on the API side). WARNING: This function must not be called before applyMachineAvoidGroups, because temporary group settings and selections will not have been stored in the operation object and will be overwritten.

Syntax

"machineAvoidGroups_var" is a variable referencing a MachineAvoidGroups object.
returnValue = machineAvoidGroups_var.sync()
"machineAvoidGroups_var" is a variable referencing a MachineAvoidGroups object.

#include <Cam/MachineAvoidSelections/MachineAvoidGroups.h>

returnValue = machineAvoidGroups_var->sync();

Version

Introduced in version September 2024