Skip to content

DeleteModelRef ​

his event is triggered after a model (thread) has been removed from a model group, i.e. the model reference from that model group to the model thread has been deleted.

Parameters ​

ParameterDescription
mgroupidintValue, the ID of the model group.
threadidintValue, the ID of the model thread.
modelrefidintValue, the ID of the reference going from the model group to the model thread.

Exit value: ​

Remarks ​

Note that, as the model reference does not exist any more, you cannot use modelrefid for core access here.

See Also ​

Example ​

The following example displays an INFOBOX with information about the deleted model.

leo-grammar
	ON_EVENT "DeleteModelRef" {
  
	SETG id_MGroupId: (mgroupid)
	SETG id_ThreadId: (threadid)
	SETG id_MRefId: (modelrefid)
	CC "AdoScript" INFOBOX ("ModelGroupId:   " + STR(id_MGroupId)  + 
	"  ThreadId:  " + STR(id_ThreadId) + 
	"  ModelReferenceId:   " + (id_MRefId))
	}