Skip to content

BeforeCreateModel ​

This event is triggered before a model is created.

Parameters ​

ParameterDescription
threadidintValue, ID of the model thread.
modelnamestrValue, model name.
versionstrValue, version number.
originstrValue; "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
	
	}