Creating a Swept Volume

You can generate swept volumes for all or part of a robot task to create 3D representations of the volume occupied during program execution.

Determine the clash detection between a robot and other entities in the world using Clash during simulation, where clash detection is performed at discreet times based on a defined step size. Performing clash analysis between swept volumes, however, is easier and more efficient to simulate. You may use the computed swept volume to view the volume that an object is covering during the simulation.

Upon creation, a swept volume appears in the tree as a user-defined resource. This allows for any further manipulation, such as the creation of attachments.

Note: The dynamic clash system automatically excludes the swept volume self-clash. However, the Swept volume will be considered a regular Geometry Object by the dynamic clash system if the Input Task is deleted. Swept volume with Task deleted will not be excluded for self-clash. See Using Dynamic Clash.

  1. From the Setup section of the action bar, click Create Swept Volume .
    The Robot task swept volume dialog box appears.
    Note: The Swept Volume is also available through the context menu of the Results Animation thumbnail. The panel is updated to display only the options that are applicable for animation objects. Launching, it is prepopulated with the information from the animation whose contextual menu is used, and you are able to select another animation objects if required, but it is not be possible to select robot tasks and animations at the same time. The generated animation sweeps open in separate tabs.
    Note: You can also alter the default values for Swept Volume in Preferences.
  2. Select tasks, or one or more resources that have tasks defined.
    Tasks appear in the Resource tasks list as they are selected.

    Note: The Resource tasks list displays the task Cycle Time, if available, and N.A. otherwise. Cycle Time can be computed in Teach.
  3. Optional: Click Step size in the Resource tasks to specify the required step simulation step size for each individual task.

    The simulation step size can be increased for a less accurate swept volume that generates more quickly. A lower value provides more accuracy, but requires more time to process.

  4. Optional: Click Start and End in the Resource tasks to specify the task subset for which to generate the swept volume.
  5. Optional: Select Keep to retain the swept volumes generated before and after the selected task subset.
  6. Optional: For each task in the Resource tasks list, click the colored swatch in the Color column.
    A panel appears that allows you to choose a specific swept volume color and transparency level for the selected task.

  7. Optional: Select Keep to also generate swept volumes for the portions of the task before and after the selected task subset.
  8. Optional: Click [All] in the Part Selection column for a task.


    The Swept Objects dialog box appears, providing a list of objects that are considered during the generation of the swept volume. You can click to select/deselect objects as required and click OK to return to the Robot task swept volume dialog box.
  9. Optional: Click Target or Relative to in the Resource tasks list to allow you to select where the sweeps are stored, and to allow selection of a product to be used as reference when generating the sweeps (default value: the workcell where the behavior rep containing the task resides).

    To select the reference product, click the corresponding cell in the list, then select the required product. The sweep is generated relative to the base location of the reference object. The reference product is not persisted, so you must select it again if the sweep is regenerated later on.

    Regarding the selection of the target user-defined resource (UDR), certain restrictions apply to satisfy the link requirements based on the current model:

    • All user-defined resources containing products with sweeps must be direct children of the workcell where the behavior rep containing the task resides.
    • All sweeps generated for tasks belonging to the same robot must be generated under the same product. It is important to choose the required location when the first sweep is generated. At that moment you can select one of the existing UDRs, or ask to create a new one. When another task of the same robot is swept later on, the previously selected/generated UDR is automatically selected and cannot be changed.
    • Sweeps generated for tasks belonging to other robots can be created under a new UDR or an existing one can be chosen from the new Target list.

    To easily recognize the generated UDRs and the tasks corresponding to each Swept volume, when creating a new UDR, its name is set to Task analysis geometry X, each product (child of this UDR) grouping the sweeps is named Analysis geometry for <robot name>, and the name of the part containing the task sweeps is set to the task name. For example, consider the following task selection:

    The UDR structure generated for a task subset with Keep turned OFF:


    The UDR structure generated for a task subset with Keep turned ON:


  10. In the Robot task swept volume panel, click Volume computation options.


    Options for Filtering, Simplification, and Execution appear, where:
    • Position precision can be selected to allow for the reduction of the number of predefined positions recorded in the simulation and to control the swept volume accuracy. When enabled, the value entered represents the definition of a minimum value for the deviation.
    • Generate operation sweeps generates sweeps per part and per operation (when option in ON) or to generate them per part and per task (when option is OFF). The default value of this option is the one set in Preferences. .

    • Export and Import the XML specifications this contains the selected tasks, filtered parts (if any), step sizes, color of the generated sweeps, target User-defined resources and reference products (if any), and the volume computation options.

      The XML file is especially useful as an input for batch computation.

      Exporting the current Swept Volume specification exports the information for all tasks from the dialog (no partial export is possible).

      Importing an XML file removes all previously selected tasks and clears all options. Then it populates the dialog with the tasks, their options (step size, sweep color, filtered parts, etc.), and the computation options from the XML file.

      The XML spec format:


      Sample XML file:


      Note: Cycle Time is not exported to the XML specification because it is displayed for reference only and is not part of the swept volume specification.

    • Wrapping grain creates an envelope around the selected parts based on the entered value.
    • Wrap into single sweep to specify if all part sweeps should be combined into a single one, thus generating one single sweep per task (when option is turned ON) or if individual part sweeps are to be generated (when option is turned OFF).

      This can be turned ON/OFF only when the Wrapping grain option is turned ON, otherwise it is disabled. Also, turning ON the Wrap into single sweep option automatically disables the Generate operation sweeps option, as they cannot be applied together.


    • Accuracy allows you to input the simplification calculation; a higher value results in slower computation time, but a lighter simplification representation.
    • Execution allows you to select Interactive or Batch, and to specify the Max simulation time.
    Note: When generating swept volumes for tasks that contain infinite loops, specify a Max simulation time. The simulation stops when the specified maximum simulation time is reached and the swept volume is generated using the completed portion of the simulation.
  11. Optional: Click Batch in the Execution.
    Note: The build-up not applied in batch mode so create a simulation state that also stores position information and set it as active, then persist the data before computing the swept volume in batch mode.

    A new standard batch: DELSweptVolumeBatchComputation

    This batch utility allows you to select the data you want to work on. You then specify the folder where the input XML file is (the file containing the swept volume specs - this XML input file has to match the format specified), as well as the information where the report should generate.

    You can also start the batch computation interactively, through the Execution section in the Swept Volume. Here you are able to monitor the progress interactively through the Batch management panel.

    In Batch Management, monitor the execution of each batch, to stop a running batch or to clear an ended batch, to display the batch results (HTML report), to open and integrate the result in session, and to display the error details in a failed batch (HTML report).

    • X or ! - Stops running a batch, or clears an ended one.
    • i - Display the batch results.
    • - Integrate the results into a session.

  12. Click OK.
    New 3D shapes are created representing the resulting swept volumes.
    Note: As soon as a task sweep generates, a link between the sweep and the originating task is also stored in the model. This link is used to generate exclusion pairs between the robot and its corresponding sweep(s): whenever dynamic clash is active, self-clashes between the robot and its sweep(s) are not reported. This eliminates the need to hide the sweeps and create multiple simulation states to manage hide/show of sweeps, to prevent them to be computed as self-clashes.

Result: