Skip to content

GET_MODELGROUPS_OF_MODELVERSION ​

GET_MODELGROUPS_OF_MODELVERSION returns all modelgroups in which a modelversion is referenced.

Syntax ​

leo-grammar
CC "Core" GET_MODELGROUPS_OF_MODELVERSION modelid:intValue

#--> RESULT ecode:intValue  mgroupids:strValue
CC "Core" GET_MODELGROUPS_OF_MODELVERSION modelid:intValue

#--> RESULT ecode:intValue  mgroupids:strValue

Parameters ​

  • modelid (idValue) - the model version ID of which you want to retrieve the modelgroups.

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • mgroupids (strValue) - ID list separated by blank spaces.

Details ​

This command makes no checks whether you have write or read access on the modelgroups!

See Also ​

Examples ​

asc
# get the current model
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid
IF (modelid = "")
{
  CC "AdoScript" ERRORBOX "Open a model first!"
  EXIT
}

CC "Core" debug GET_MODELGROUPS_OF_MODELVERSION modelid:(VAL modelid)
# get the current model
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid
IF (modelid = "")
{
  CC "AdoScript" ERRORBOX "Open a model first!"
  EXIT
}

CC "Core" debug GET_MODELGROUPS_OF_MODELVERSION modelid:(VAL modelid)

Versions and Changes ​

Available since ADOxx 1.3