AfterCreateModelWindow

This event is triggered after a new model window has been created in the modeling editor.

Parameters

modelidintValue, contains the ID of the concerned model.

Exit value

Remarks

See Also

Example

   ON_EVENT "AfterCreateModelWindow" {

   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.")
}