EachSortedTool

From Compost Wiki
Revision as of 21:39, 16 June 2017 by Jeffm (talk | contribs)
Jump to navigation Jump to search

EachSortedTool('n')

Description

Sets up a loop that will iterate the tools in a part and sort the tools based on the specified parameter. Must be terminated with NextTool at the proper nested level. This command is a replacement for EachTool and can not be combined with it.

The parameter must be one of the following items;

' All ' Iterates all the tools in the file in tool tile order. Identical to the EachTool functionality.

' ThisFlow ' Iterates all the tools in the file that are accessible by the current flow in tool tile order. A subset of the tools returned by All.

' UsedThisFlow ' Iterates all the tools in the file that used by an operation in the current flow, in the order they are first used.TLOffset# can be used inside the loop to access the offset set in the tool dialog.

' UsedThisFlowWithOffsets ' Iterates all the tools in the file that used by an operation in the current flow, in the order they are first used. Tools that are used in operations that override the tool offset are treated as unique tools and may be duplicated in the list if they are used with multiple offsets. TLOffset# can be used inside the loop to access the offset that was set by the operation.

' UsedThisFlowToolOrder ' Iterates all the tools in the file that used by an operation in the current flow, in the order they are defined in the tool title list.TLOffset# can be used inside the loop to access the offset set in the tool dialog.

' UsedThisFlowWithIDCodes ' Iterates all the tools in the file that used by an operation in the current flow, in the order they are used with there unique ID codes.TLOffset# ToolSubPostion#, OpToolIDCode#, OpToolIDCode$ can be used to access the offset, sub postion, and ID code data inside the loop.


Stats

ID 900
Type Command
Class All Machines
Min Version GibbsCAM version 11.0