EachSortedTool: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Jeffm (talk | contribs)
No edit summary
FabienT (talk | contribs)
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==EachSortedTool('n')==
==EachSortedTool('n')==


{{Description|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.
{{Description|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 cannot be combined with it.


The parameter must be one of the following items;
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.
* '''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'''.
* '''ThisFlow:''' Iterates all the tools in the file that are accessible by the current flow in tool tile order. This actually represents 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.
* '''UsedThisFlow:''' Iterates all the tools in the file that are 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 that was 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.
* '''UsedThisFlowWithOffsets:''' Iterates all the tools in the file that are 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.
* '''UsedThisFlowToolOrder:''' Iterates all the tools in the file that are 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 that was 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.
* '''UsedThisFlowWithIDCodes:''' Iterates all the tools in the file that are used by an operation in the current flow, in the order they are used with their unique ID codes. [[TLOffset#]], [[ToolSubPos#]], [[OpToolIDCode#]] can be used to access the offset, sub position, and ID code data inside the loop.


* '''UsedAllFlows:''' Iterates all the tools in the file that are used by an operation in any flow, in the order they are first used. [[TLOffset#]] can be used inside the loop to access the offset that was set in the tool dialog.


* '''UsedAllFlowsWithOffsets:''' Iterates all the tools in the file that are used by an operation in any 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.
* '''UsedAllFlowsWithIDCodes:''' Iterates all the tools in the file that are used by an operation in any flow, in the order they are used with their unique ID codes. [[TLOffset#]], [[ToolSubPos#]], [[OpToolIDCode#]] can be used to access the offset, sub position, and ID code data inside the loop.
* '''UsedAllFlowsToolOrder:''' Iterates all the tools in the file that are used by an operation in any flow, in the order they are defined in the tool title list. [[TLOffset#]] can be used inside the loop to access the offset that was set in the tool dialog.
}}
}}
{{Stats|id=900|type=Command|class=All Machines|scope=|version=GibbsCAM version 11.0}}
{{Stats|id=900|type=Command|class=All Machines|scope=|version=GibbsCAM version 11.0}}
[[Category:The Tool]]
[[Category:The Tool]]

Latest revision as of 15:52, 29 July 2026

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 cannot 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. This actually represents a subset of the tools returned by All.
  • UsedThisFlow: Iterates all the tools in the file that are 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 that was set in the tool dialog.
  • UsedThisFlowWithOffsets: Iterates all the tools in the file that are 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 are 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 that was set in the tool dialog.
  • UsedThisFlowWithIDCodes: Iterates all the tools in the file that are used by an operation in the current flow, in the order they are used with their unique ID codes. TLOffset#, ToolSubPos#, OpToolIDCode# can be used to access the offset, sub position, and ID code data inside the loop.
  • UsedAllFlows: Iterates all the tools in the file that are used by an operation in any flow, in the order they are first used. TLOffset# can be used inside the loop to access the offset that was set in the tool dialog.
  • UsedAllFlowsWithOffsets: Iterates all the tools in the file that are used by an operation in any 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.
  • UsedAllFlowsWithIDCodes: Iterates all the tools in the file that are used by an operation in any flow, in the order they are used with their unique ID codes. TLOffset#, ToolSubPos#, OpToolIDCode# can be used to access the offset, sub position, and ID code data inside the loop.
  • UsedAllFlowsToolOrder: Iterates all the tools in the file that are used by an operation in any flow, in the order they are defined in the tool title list. TLOffset# can be used inside the loop to access the offset that was set in the tool dialog.


Stats

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