Skip to content

GET_MODELGROUP_ID ​

GET_MODELGROUP_ID determines the ID of a model group which is specified as path.

Syntax ​

leo-grammar
CC Core" GET_MODELGROUP_ID	 mgroupname:strValue sep:strValue

#--> RESULT ecode:intValue mgroupid:idValue.
CC Core" GET_MODELGROUP_ID	 mgroupname:strValue sep:strValue

#--> RESULT ecode:intValue mgroupid:idValue.

Parameters ​

  • mgroupname (strValue) - specifies the full modelgroup path.
  • sep (strValue) - specifies the character with which the single model group names of the path are separated. A good value for sep is "\t" (TAB character), as this character cannot occur in a model group name. The parameter sep must always be specified, even if you try to resolve a top model group.

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • mgroupid (intValue) - contains the ID of the modelgroup

Details ​

See Also ​

Examples ​

asc
# this tries to resolve the ID of the modelgroup
# "Modelle --> Bereiche --> Entwicklung --> Philip"
CC "Core" GET_MODELGROUP_ID
      mgroupname:"Modelle\tBereiche\tEntwicklung\tPhilip" sep:"\t"

# this tries to resolve the ID of the root modelgroup 'Modelle'
CC "Core" GET_MODELGROUP_ID mgroupname:"Modelle" sep:"\t"
# this tries to resolve the ID of the modelgroup
# "Modelle --> Bereiche --> Entwicklung --> Philip"
CC "Core" GET_MODELGROUP_ID
      mgroupname:"Modelle\tBereiche\tEntwicklung\tPhilip" sep:"\t"

# this tries to resolve the ID of the root modelgroup 'Modelle'
CC "Core" GET_MODELGROUP_ID mgroupname:"Modelle" sep:"\t"

Versions and Changes ​

Available since ADOxx 1.3