Working with User Features

You can manage user-defined features in Visual Scripting and insert them in your graph as operators.

This lets you reuse your own 3D features in your Design Sequence.

Notes:
  • Only wireframe and surface user features can be instantiated in the app.
  • User features operators are not supported in xGenerative Design. If you open in this app a Design Sequence including user features operators, their nodes are seen as obsolete.

This task shows you how to:


Before you begin: Create a user feature.

For more information, see 3D Templates Capture: Creating and Working with User Features: Creating a User Feature: Creating a User Feature.

Create a Resource Table

A resource table defines the resources that you can use in your design.

  1. From the Tools section of the action bar, click Resource Table .
    The dialog box appears.
  2. In the Resource table management dialog box, click Add a new resource item .
  3. Define the resource:
    1. Double-click the Logical Name box, and then enter a name.
    2. Double-click the Resource Type box, and then select User Defined Feature.
    3. To assign a user feature in the resource table, double-click the Resource box.
      The Content Chooser appears to let you search and select a feature.
  4. Click OK.
    In the tree, the resource table appears under the Relations node.

Result:

Instantiate a User Feature as an Operator

You can retrieve your user features in the Operators Library and insert them as operators in your graph.

  1. Double-click your Design Sequence to open the Visual Scripting Editor.
  2. In the Operators Library, click the Resources category.
    The operators that appear have the same name as the user features added in the resource table.
  3. Click and drag an operator to instantiate it in your graph.
    For each user feature, the operator has the same parametric and geometric inputs and outputs as the user feature.
    Note: For display purposes, if there are too many input parameters, they are automatically hidden. For more information, see Graph Nodes.
  4. Connect the inputs of the instantiated operator.

    Important:
    • Only published geometries or published features can be connected to the inputs of the user feature operator.
    • If an incompatible input or parameter is connected to a new user feature operator, the operator displays an error, and the user feature is not created.
    • If an incompatible input or parameter is connected to an existing user feature operator, the operator displays an error, and the user feature is not created. However, its previous results are kept.

Result:

Note: About the modification of user features:
  • If the logical name of a user feature is modified in the resource table, the instantiated operator becomes invalid.
  • If you modify the definition of a user feature or if you assign another feature to an existing resource:
    • If the inputs, outputs, or parameters are the same or partially the same, they are kept in the graph.
    • If the modified inputs and outputs are compliant with the previous ones, the instantiated operators remain active, but they are not updated with new inputs.
    • If the modified inputs and outputs are not compliant with the previous ones, the instantiated operators become obsolete, and a new instantiation is required.