Customization > Extensibility Through Profiles, Stereotypes, Tag Definitions and Scripts > Advanced extensibility through stereotype scripts and script items > Extending drop behavior through stereotypes and scripts > Overview of extending drop behavior through stereotypes and scripts
  
Overview of extending drop behavior through stereotypes and scripts
You can change the behavior of Modeler for when an item is dropped on to a diagram in the diagram editor, or when an item is dropped on to an item in a pane.
On Drop Scripts for diagrams
You can make Modeler run a script whenever the following drag-and-drop operation are performed on a valid diagram in the diagram editor:
An item is dragged to the diagram from a pane.
A symbol is moved on the diagram, including the reconnection of a link.
This is useful if you have customized diagram types. For example, you may want to Modeler to interrogate an item that is dropped on to that diagram and then process that item differently depending on its type or any stereotypes that have been applied to it.
You can apply on drop scripts to diagrams through Stereotypes or Scripts:
If you want an on drop script to apply only to specific diagrams, use a Stereotype to define and apply the on drop script.
* 
The 'Apply to All Objects of Associated Model Item Types' option does not apply on drop scripts to any diagrams.
If you want an on drop script to apply to all diagrams of a specified type, such as all Class Diagrams, use a Script.
If a diagram has more than one on drop script applied, only the first script is run.
On Drop Scripts for items
You can make Modeler run a script when an item is moved or copied to another item in a pane.
The on drop script of the target item is run, not the on drop script of the item that is being dragged.
You can apply on drop scripts to items through Stereotypes or Scripts:
If you want an on drop script to apply only to specific items, use a Stereotype to define and apply the on drop script.
* 
The 'Apply to All Objects of Associated Model Item Types' option does not apply on drop scripts to any items.
If you want an on drop script to apply to all items of a specified type, such as all Classes, use a Script.
If an item has more than one on drop script applied, only the first script is run.