Working with Modules

You can design in Visual Scripting a model that is then used for concept structure engineering.

The modular approach that the Concept Structure Engineering app offers lets you create design sequences in modules that you can instantiate and duplicate.

Thanks to the creation of design sequences in modules, you can manage variants of a design sequence, which allows the study of alternative parametric designs.

Important: Working with modules in Visual Scripting is only possible on the condition that you have access to Concept Structure Engineering.

Important: Some visuals in this page are based on the user interface in an earlier release, but the concepts described are still valid.

This page discusses:

Module Section in the Action Bar

The Module section provides commands for creating and managing modules.

Module: creates a module under the 3D shape.

A module is the container used for concept design.

Example of a module added in the tree. It embeds an axis system, and a Design node in which there is a geometrical set.

Module
Axis system
Design node
Geometrical set

Output Interface: creates an output interface.

Output interfaces or symbolic publications are components that allow external links between the modules.

An output interface is made of two parameters: a symbolic identifier and a list of targets or references.

Input Interface: creates an input interface.

Input interfaces or symbolic references are also components that allow to link modules thanks to external links.

An input interface is made of two parameters: a symbolic identifier and a symbolic path name.

Module Structure Manager: lets you manage all your modules.

You can create, rename, or delete modules. You can also add, edit, or remove symbolic interfaces.

Create Alternative: creates an alternate module.

You can turn on or off an alternate module in the Module Structure Manager. You can also right-click the module in the tree and, from the Shortcut Toolbar, click Switch on Alternative .

Geometrical Set: creates a geometrical set.

A geometrical set gathers features in a set.

For more information about modules management, see Concept Structure Engineering User's Guide.

Behavior of a Design Sequence Inserted in a Module

Modules have an axis system to position their content and they have symbolic interfaces to connect features between different modules.

Objects inserted in a module can only reference the input interfaces of the module: it is impossible to reference objects that are outside a module without using external links.

As a consequence, several behaviors of the Design Sequence feature are modified when it is inserted in a module.

Positioning

A Design Sequence always includes a References node that defines the positioning of the Design Sequence.

  • When inserted under a 3D Shape, the References node references the absolute references (default axis and plane) of the model.

  • When inserted under a module, the References node references the positioning axis of the module. For example:

    Thus, when the axis system of a module is modified to change the position of the module, the References node is updated accordingly.

Note: The connection of the following nodes to the References node is automatic:
  • Coordinates
  • Point by Coordinates
  • Translate by Coordinates

When working with modules, this automatic connection ensures that the nodes always retrieve the modifications made on the axis system of the module.

Input Operator

In Visual Scripting, the Input operator lets you reference a geometry that is outside the Design Sequence.

In Concept Structure Engineering, if you select an external element as the source of an Input node, the required interfaces and external links are created automatically to allow the reference to an element that is not in the module.

In the following example, the xy plane is selected as the source:

Table 1. Before the Selection
Tree Editor
Table 2. After the Selection
Tree Editor

After the selection, the interfaces that allow the reference to the xy plane are automatically created. In the tree:

  • The output interface INTER1 appears under the Outputs node (). It is linked to the xy plane.
  • The input interface INTER2 appears under the Inputs node (). It is linked to the INTER1 output, and it is referenced by the Input.1 operation.

Thanks to the INTER1 and INTER2 interfaces, the connection between the Input.1 node and the xy plane is possible.

Published Results

When working with concept structures, the result of a Publish operation can become a module's output.

If a Design Sequence uses as input the publications of another Design Sequence, the exact structure of the publication is retrieved.

Table 3. Example of Published Geometries Used as Input
Tree Published Results in MODULE1 Published Results Used as Input in MODULE2
Important: In a deactivated module, all the inputs of the Design Sequence have an empty value.

For example:

Moreover, in deactivated modules, the publications of an empty value always keep the previous results:

Keeping publications in deactivated modules ensures that links between other features and the publications are not broken.