BeforeCreateModel ​
This event is triggered before a model is created.
Parameters ​
| Parameter | Description |
|---|---|
threadid | intValue, ID of the model thread. |
modelname | strValue, model name. |
version | strValue, version number. |
origin | strValue; "new" : The model has been created as completely new (empty) model, "saveas-new" : The model has been created as a copy of an existing model. |
Exit value: ​
|0|No abortion.| |-1|Abort without error.| |-2|Abort with error.| |greater than 0|Abort with core error code.|
Remarks ​
See Also ​
Example ​
leo-grammar
ON_EVENT "BeforeCreateModel" {
#do something
}