Skip to content

RenameMGroup ​

This event is triggered after a model group has been renamed.

Parameters ​

ParameterDescription
mgroupidintValue, the ID of the renamed model group.
mgroupnamestrValue, the new name of the renamed model group.

Exit value: ​

Remarks ​

See Also ​

Example ​

The following example informs the user about the renaming of an instance.

leo-grammar
	ON_EVENT "RenameMGroup" {

	SETG id_MGroupId: (mgroupid)
	SETG str_MGroupName: (mgroupname)
	
	CC "AdoScript" INFOBOX ("ModelId:  " + STR(idModelId) 
	+ "  ModelGroupName:  " + (str_MGroupName)) title: "You are renaming the model group..."
	
	}
	ON_EVENT "RenameMGroup" {

	SETG id_MGroupId: (mgroupid)
	SETG str_MGroupName: (mgroupname)
	
	CC "AdoScript" INFOBOX ("ModelId:  " + STR(idModelId) 
	+ "  ModelGroupName:  " + (str_MGroupName)) title: "You are renaming the model group..."
	
	}