Set Tag for Branch¶
Function¶
This Step is usually used in combination with the “Branch by Tag” Step. When multiple logical branches contain the same Steps, the “Set Tag for Branch” and “Branch by Tag” Steps allow you to reuse the same Steps without duplication. Use the “Set Tag for Branch” Step to mark the branches, and then connect the branches to the common part, followed by the “Branch by Tag” Step to connect the common part to different branches.
Parameter Description¶
- Basic Non-Move
Please refer to General Parameters of Non-Move Steps for detailed information.
- Tag
Used to set the tag of the current logical branch. This parameter should be set in reference to the Out Port Count parameters of “Branch by Tag” Steps.
The number of exit ports should be the same as the number of tags. If two tags are set, then Out Port Count should be set to 2. Note that the branch tagged 1 corresponds to exit port 0 of the “Branch by Tag” Step, branch tagged 2 to exit port 1, and so on.
Usage Example¶
As shown in the following figure, three logical branches use the same Steps (“Fixed-Point Move” and “Relative Move”), and the parameters of these Steps are set to the same values.
Keep only one set of “Fixed-Point Move” and “Relative Move” Steps.
Add the “Set Tag for Branch” Step to each branch, and set the tag for each branch (1, 2, and 3).
Once Mech-Viz proceeds to the “Branch by Tag” Step after the common Steps, it will proceed along the branch before the common Steps according to the tag of the branch.