About the Loop Edition Window and Menus

The Loop Edition Window

The Loop Edition window is displayed when you click the Loop icon () in the Control Features toolbar.

Input(s)

This field enables you to select the features that you want to use in the specification tree or in the geometry. The selected features are those that will be used in the loop body.

To deselect items from the Inputs list, click them in the specification tree or in the geometry.

The Input Name field enables you to rename the inputs that you selected. In this case, this name will be used in the loop body.

Context

This field enables you to define the application context of the loop. It can be any V5 feature. To select the context, click the Context field once, then click the item in the specification tree.

Iterators

The From ... To fields enable you to define the number of times that the loop will operate. When defining the ranges, you can right-click the From... and the To fields to access the contextual menu.

  • The Edit formula... command enables you to access the Formulas editor and to create a formula that will apply to the loop operation. For more information, see Creating a Formula.
  • The Add Range... command enables you to add a range.
  • The Edit Comment... command enables you to add a comment.
Note that:
  • The step is one in the From... To fields.
  • Both bounds are included when the loop runs.

Editor

The Editor enables you to enter the loop syntax. The language to use in this editor is the scripting language. For more information about the syntax to be used, see Using the Scripting Language.

The Tools menu

The Tools>Object Browser ... command enables you to access the Object Browser. This browser contains the types and attributes that are part of the scripting syntax.

The object browser guides you when writing a script. It allows you to access the keywords, operators and  feature attributes that can be used when working with the loop features.

The packages displayed in the left part of the browser are those you selected from the Tools>Options... command.

To add or remove packages:

  1. Select Tools>Options... to open the Options window, then select General>Parameters and Measure, and click the Knowledge Environment tab.

  2. In the Language field of the Knowledge tab, check Load extended language libraries and select the libraries.

From this window, you can manipulate the list of objects supported by the script using their attributes...
  • The left part of the browser displays  the available packages.
  • The central part displays the list of objects belonging to this category. 
  • The right part displays the attributes allowing you to manipulate these objects (if any). 

... and write loop bodies (see example below):

Circle0 isa GSMCircle
        {
            CircleType = 0;
            TypeObject isa GSMCircleCtrRad
            {
            Center = object:  
            ..\..\..\Construction_Body\Point.2;
            Support = object:         
            ..\..\..\Construction_Body\Extrude.1;
           Radius = 180mm;
            }
            StartAngle = -100deg;
            EndAngle = 100deg;
          }
Back
To return to your last interaction in the wizard. Has no action on the script editor.
Forward 
To go forward to your next interaction in the wizard when moving through a series of interactions.
Browse Attribute Description
This icon is not available in the current version of the product.
Jump to prototype
To return to the root object.
Paste Selection 
To insert the object name in the script.

The Loop Contextual menu

You can access the Loop contextual menu by right-clicking the loop in the specification tree.

  • Definition... enables you to access the Loop Edition window.
  • Deactivate... enables you to deactivate the loop. In this case an icon indicates that the loop is disabled. To enable it, right-click it and select Loop activate....
  • Hide enables you to hide the loop. In this case, it will not be displayed in the specification tree.
  • Reorder... enables you to reorder the loops.