Creating a Simulation State

You can take snapshots of the states of each object within a Simulation; these snapshots are called Simulation States.

This task shows you how to:


Before you begin: This scenario assumes that you have already activated 3D Simulation. A Simulation State is a snapshot of the positions and graphical properties of the objects stored in the state.

Create a New Simulation State

You can create a Simulation State. To use a state in a simulation, make it part of the active scenario.

  1. Click New Simulation State .

    The State Management and the Tools Palette panels appears. The Tools Palette contains options for selecting objects while State Management contains detailed options for a state's scope.

  2. After selecting OK, a thumbnail image of the new state appears in the Simulation States panel.
  3. For a state defined for a resource that owns a task (or defined for the parents of the resource), right-click the thumbnail, and select Link 3D State to Task. Then select a task.
    The state associated with the task is applied at the beginning of the task simulation.
  4. Modify the color and then save the state and turn off the command.
    The state reverts to what it was before the New Simulation State command being used.
    Note: Simulation States only store attributes of products and resources. They do not store attributes of 3D shapes.

Specify the Active Simulation State

You can select a Simulation State and specify that state as active. The active state is the state applied at the beginning of the simulation.

In the Simulation States panel, right-click the thumbnail of the Simulation State and select Set As Active.
The check mark appears in the selected thumbnail to indicate the active state.

Edit Simulation States

You can edit an existing Simulation State.

  1. To edit a state, right-click the state in Simulation States panel and select Modify and then Edit .
    The State Management, Tools Palette, and B.I. Essentials pane appears. Select Manage B.I. Essentials - State Definition to Hide/Show B.I. Essentials.

    The colors in B.I. Essentials represent the attributes stored in the state level. If there are changes in this state's objects compared to the global model level, they are displayed with the associated colors in B.I. Essentials and the 3D Area. To show/Hide these modifications in the tree, select F3. Select all objects with state definition attributes with in B.I. Essentials.



  2. Select a product or resource that is or is not already part of the state and select Add to State or Remove form State. From the state, select the Properties options to include or remove them.


  3. The Log field in the Object List of the State Management panel updates accordingly. The Robot snaps to the object so that you can modify its position.


    Notes:

    Depending on the type of object you select, a data-specific editor opens. For example, for a robot, the Jog command starts.

    You can multiselect objects. Changes you make to the state, such as to the transparency, are applied to all objects.

  4. Click Load Attributes From... .
    The Simulation State panels appear. A thumbnail labeled Session State appears next to the Nominal State. The Session State contains the attributes of the scenario before the state was created. You can import its attributes into the modified state. Similarly, you can apply the attributes of the Nominal State by importing the attributes.
  5. Select the state with the attributes that you want and confirm that you want the state modified.
    The state is modified.

Update Simulation States

You can update a state to capture in the state the changes you have made in the work area. Also, any additions of products or resources that have added to the process or resource structure whose state is saved are updated.

  1. In the Simulation States panel, right-click the thumbnail of the Simulation State to update, and select Modify and Update to update the state with the current changes in the 3D Simulation.
    • If you have selected the Display warning messages when updating Simulation State option in Me > Preferences > App Preferences > Simulation > Digital Manufacturing Apps Common Services > Live Simulation Common Services > 3DSimulation, the Update Simulation State dialog box opens.
    • If the Display warning messages when updating Simulation State option is cleared, the Simulation State updates.
      Note: If you have selected the Recapture list of objects when updating Simulation States Me > Preferences > App Preferences > Simulation > Digital Manufacturing Apps Common Services , the list of objects automatically recaptures.
  2. Review the information in the dialog box to confirm this is the simulations state you want to update.
  3. Optional: Select Recapture list of objects.
  4. Click Yes

    Note: Choosing to recapture the list of objects when your session contains objects that are not loaded are deleted and a warning appears asking to confirm the action.

    The simulations state is updated.

Applying Simulation States

You can apply a state so that the work area reflects the selected state.

In the Simulation States panel, right-click the thumbnail of the Simulation State that you want to apply to the 3D Area and select Apply State or double left-click the required state.



The 3D Area reflects the selected state.

Simulation States Owner

The owner indicates where the newly created Simulation States are stored. You can quickly specify the Simulation State owner by allowing selection through the shortcut menu of each resource in the Simulation States panel tree.

  1. Select the Show Preferences gear in the Simulation States panel. This pane shows a list of all owners and resources. The selected Owner is in bold.


  2. Select the resource node and to highlight the corresponding resource.
  3. Select with right-click on the required resource and in the shortcut menu of the resource node, select Set Owner.


    Note: You can also change the Owner in the State Management Panel.

Export Simulation State Information to Model

You can export information stored in the Simulation State (position, graphical properties) into the model.

Recommendation: Clear the Persist Resource Position and Persist Resource Graphical Properties options in Me > Preferences > App Preferences > Simulation > Digital Manufacturing Apps Common Services > Live Simulation Common Services > 3DSimulation. For more information, see 3D Simulation.

  1. Right-click the State and select Export and then select Export to Model. The shortcut menu of a manufacturing cell also contains Export to Model and it exports the current state of the objects in your current window (session).




    The Export to Model dialog box opens and displays all the modifications done to resources and products in a table. The modifications are also displayed in the 3D Area and the tree. Export to Model only shows which attribute types that are persisted for each object. The color persisted in the model for an object is shown in Export to Model on the corresponding Line/Color column.

    Note: The position of attached objects cannot be exported independently of an object specified as the parent of the attachment like a gun attached to a robot. These objects are marked with a lock icon in the Position column and selecting OFF or ON of the parent attachment also controls the child object's.
  2. Select which attribute you want to persist. You can select the check box at the header level to persist all attributes of that column or select each attribute individually at the object level.
  3. Click OK

    If a Simulation State contains graphical properties for resources (color, transparency, visibility) Keep Graphical Properties appears asking if you want to keep these graphical properties so they persist on saving data.

    Note: Attachment offset defined in the model are enforced when launching Export to Model. The attached objects that have been displaced jump back to the position imposed by the attachment to see the exact state that is exported to model once OK is selected.

Reuse Simulation States and Planning Objects

You can select one planning object and one or more Simulation States created at a lower child level, to be captured in that particular Simulation State.

More than one planning object in a Simulation State leads to inconsistent results because the position of the product moved through buildup would depend on the order in which the planning information stored in the Simulation State is applied, so selection is restricted to one single planning object.

Select a planning object or a lower-level Simulation State.

A control panel displays, allowing you to add/remove the selected object into the newly created/edited Simulation State.

Control Panel:

  • Planing Object

  • Simulation State

Only Simulation States belonging to children of the Simulation State owner are selectable to be added in the newly created/edited Simulation State.

Once added to the current Simulation State, the planning object/Simulation State displays in the Object list at the top of the list first planning object, then lower-level Simulation States, followed by the list of products/resources.



If the selected planning object/Simulation States are already present in the current Simulation State, the control panel allows you to remove them.

Control Panel:

  • Planing Object

  • Simulation State

Only one planning object is allowed in a Simulation State. Adding a new planning object to a Simulation State that already contains one asks if you want to replace the existing one.


The planning object is logged as Added or Removed.



Applying such a Simulation State first applies the planning object buildup, then the pointed Simulation States, and followed by the information stored in the Simulation State for individual products/resources.

If pointed Simulation States or planning object are modified, consider this new information when applying the Simulation State pointing to those particular Simulation States/planning objects.

You are able to propagate sim states with added planning objects/child states to MSR.

Controlling Properties Stored in the Simulation States

Simulation States have various properties that can be controlled when creating or applying a Simulation State. You can manage DOF (Degrees of Freedom) and position properties independently. This allows Simulation States to record object positions for either DOF, Position, or both. There are also options for Color, Transparency, and Visibility.

  1. Select DOF after editing a state, right-click the state in the Simulation States panel and select Edit.


    Note: For products/resources where the DOF attribute is not applicable, the DOF line is hidden.
  2. In the Me/Preferences... /State Management section, select under Attributes to record to record the selected options when creating a state. Select under Attributes to Apply to apply these options when applying a state. See more info in Preferences.


    Attributes in the selected object’s control panel are managed based on the options provided in the Me/Preferences.../State Management section as follows:

    • If an attribute is ON in Me/Preferences section, it is checked by default in the control panel of a newly added product/resource.
    • If an attribute is OFF in the Me/Preferences section, it is cleared by default in the control panel of the newly added product/resource.
    • When creating a Simulation State, the information collected from the modified products/resources considers the attributes specified in Me/Preferences. If position attribute is Off, position information is not collected. However, enabled attributes are not captured if their values are not modified. For example, even if the Color attribute is On in Me/Preferences, an object that gets captured in the Simulation State but has a default/unchanged color does not have the Color attribute checked in its control panel.
    • Check/clear the required attributes, if the Me/Preferences options are not locked by an administrator.
    • If the Me/Preferences options are locked by an administrator, you are unable to check/uncheck attributes, preventing accidental record of unrequired attributes.