If the functionality that your are implementing involves more than 32000, we recommend that you save the implementation for each event handler (ON_EVENT) and each menu item (ITEM) in text files and use the AdoScript commands to run those scripts.
Example:
1. copy the AdoScript code in the file "event_BeforeCreateRelationInstance.asc" and save the file in the folder "C:\example"
2. change the contents of the library attribute External coupling
1ON_EVENT "BeforeCreateRelationInstance"
2{
3[color=#b0b0b0]#save event parameters in GLOBAL variables[/color]
4SETG id_fromInstID: (frominstid)
5SETG id_toInstID: (toinstid)
6SETG id_relationClassID: (relationclassid)
7SETG id_modelID: (componentid)
8
9CC "AdoScript" FREAD file: ("C:\\example\\event_BeforeCreatingRelationInstance.asc)
10[color=#b0b0b0] # --> RESULT ecode: intValue text: strValue[/color]
11EXECUTE (text)
12}