Skip to content

CreateInstance ​

This event is triggered after an instance was created.

Parameters ​

ParameterDescription
modelid (idValue, optional) -ue, contains the ID of the concerned model.
classidintValue, contains the ID of the class.
realclassidintValue, contains the ID of the class (core internal ID).
instidintValue, contains the ID of the instance. (instanceid holds the same value, but is deprecated.)
realinstanceidintValue, contains the ID of the instance (core internal ID).

Exit value: ​

Remarks ​

See Also ​

Example ​

The following example displays information of the instance which is going to be created.

leo-grammar
	ON_EVENT "CreateInstance" {
	SETG id_InstId: (instid) 
	SETG id_ClassId: (classid) 
	SETG id_ModelId: (modelid)
	SETG id_RealClassId: (realclassid)
	SETG id_RealInstId: (realinstanceid)
	CC "AdoScript" INFOBOX ("Modelid:   " + STR(id_ModelId)  + "  ClassId:  " + STR(id_ClassId) + 
	"  InstanceId:   " + STR(id_InstId) + "  RealInstanceId:   " + STR(id_RealInstId) + 
	"  RealClassId:   " + STR(id_RealClassId))
	title:"You are deleting the instance..."
	}