Edit Controls (material flow objects)

The command Edit Controls opens the dialog Edit Controls. You can make the Plant Simulation objects react to a number of user actions, such as inserting and deleting objects, etc. User input calls the Method you entered. You can also assign Methods from within other Methods. The respective attributes are described under Attributes for Controls of All Objects.

Depending on their functions, the objects provide different controls. The EventController, for example, does not have a rename control, as you cannot rename it. Control methods which are available only for certain objects are explained in the respective sections. Controls that are not available for the object are deactivated, i.e., grayed out.

Select a Method to be activated, when Plant Simulation performs a certain action:

  • Click next to the name of the control. In the dialog Select Object, navigate to the folder in which the Method object is located and select it.

  • Or right-click in the text box. Then, select Create Control on the context menu to create a control method, which is a user-defined attribute of data type method of this object:

  • Enter a meaningful name into the text box and select Create Control. Plant Simulation then inserts self.Name_you_entered_for_the_control, such as self.ExitControlEnginePlant.

  • Select Create Control. Plant Simulation then inserts self.OnBuilt_in_name_of_the_control, such as self.OnEntrance.

    Note:

    To open the dialog of the object, whose name you entered into the text box, click in the text box, and press the F2 key.

Enter the source code of this control into the Method that opens.

This control is a user-defined attribute of data type method. To open and modify this Method:

  • Click in the text box and press F2.

  • Shift and double-click in the text box.

  • Select the tab User-defined Attributes and double-click the name of the Method in the list pane.

  • To delete this control, delete the user-defined attribute; deleting the name from the text box just deletes the name, but keeps the user-defined attribute.

Once you enter a control, either here or on the Tab Controls, the context menu of the object in the Frame shows the command Controls. You can then select the name of the control on the submenu to edit it.

Related Topics

Define Controls

Rename control

The dialog Select Object

Relabel control

Constructor control

Change path control

Destructor control

Move-to-folder control

Select control

Init control of the EventController

Move-in-frame control

Init control of the Transporter

Open control

Fail control

Close control

Pause control

Permit-delete control

Unplanned control

Drag-and-drop control

Available control of Exporter/Worker

Connect control

Not-available control of Exporter/Worker

Plausibility control