Skip to content

BeforeCreateModelWindow ​

This event is triggered before a new model window is created in the modeling editor.

Parameters ​

ParameterDescription
modelid intValue, contains the ID of the concerned model.

Exit value: ​

Remarks ​

See Also ​

Example ​

leo-grammar
  
	ON_EVENT "BeforeCreateModelWindow" {
	
	SETG nNewModelID:(modelid)
	
	CC "Core" GET_ALL_OBJS modelid:(nNewModelID)
	SETL lObjIDs:(objids)
	SETL nObjsCount:(tokcnt(lObjIDs))
	
	CC "Core" GET_ALL_CONNECTORS modelid:(nNewModelID)
	SETL lConnectorIDs:(objids)
	SETL nConnectorsCount:(tokcnt(lConnectorIDs))
	
	CC "AdoScript" INFOBOX ("The model contains " + STR nObjsCount + 
	" objects and " + STR nConnectorsCount + " connectors.")
 }