On drop (property)
For automation interface information about the On Drop property (Owned On Drop Script association through the automation interface), see the automation interface topic for a Script in the Related Topics. When you select the On Drop check box, Modeler creates a Script object for the Stereotype through the Owned On Drop Script association. The Script Type of the Script object is set to OnDrop. The Script object is used to record the On Drop Script that is displayed on the UI Events tab of the Stereotype's Property Pages.
This property specifies that on drop script can be specified for a Stereotype. After selecting the On Drop check box, you can type script in the associated box.
When the Stereotype is applied to an item, the On Drop script is run whenever an item is moved to or copied to that item in a Modeler pane.
When the Stereotype is applied to a diagram, the On Drop script is run whenever any of the following drag-and-drop operations are performed on the diagram in the diagram editor (not when items are added through the toolbar buttons):
An item is dragged to the diagram from a Modeler pane.
A symbol is moved on the diagram, including the reconnection of a link.
By default, the On Drop check box is cleared.
You use the Code Editor to edit On Drop Script code. The Code Editor language is always Visual Basic when editing On Drop Script code, irrespective of the Language that is set for parent Packages and the Model. For information about the Code Editor, including setting the code language to use, click here Overview of the code editor
This property is set on the UI Events tab of a Stereotype's Property Pages. You can click the Edit button and change the code in the Code Editor window. In addition, you can add model object references to the On Drop Script code.
* 
You can apply on drop scripts to diagrams through Script items whose Script Type is OnDrop.
* 
To write scripts you require a good working knowledge of the VBScript language, the Modeler Meta Model and the Modeler Automation Interface. If you run a script that has errors, those errors can corrupt Modeler model data and make Modeler crash
The following section provides information about the items and diagrams for which On Drop is a property. For more information about an item or diagram, click it.
Is property of
Was this helpful?