Skip to content

GET_ALL_ATTRPROFS_IN_MODEL ​

GET_ALL_ATTRPROFS_IN_MODEL determines all attribute profiles which are referenced from the model specified by modelid. For this function to succeed, the model must be at least loaded in the core (no write access required).

Syntax ​

leo-grammar
CC "Core" GET_ALL_ATTRPROFS_IN_MODEL model:idValue .


#-->RESULT ecode:intValue apversions:string
CC "Core" GET_ALL_ATTRPROFS_IN_MODEL model:idValue .


#-->RESULT ecode:intValue apversions:string

Parameters ​

  • modelid (idValue) - the parameter modelid specifies the source model.

Returns ​

  • ecode (intValue) - the result ecode is set to zero if function succeeded and to a non zero value if failed.
  • apversions (strValue) - ing

Details ​

The result apversions is itself a LEO string with the following layout (0-n times):

APREF srcobjid:idValuesrcattrid:idValueapversionid:id

srcobjid is the ID of the source object
srcattrid is the ID of the source attribute
apversionid is the ID of the referenced AttrProf or -1 if it is a broken AttrProf reference.

See Also ​

Examples ​

asc
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid
CC "Core" debug GET_ALL_ATTRPROFS_IN_MODEL modelid:(VAL modelid)
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid
CC "Core" debug GET_ALL_ATTRPROFS_IN_MODEL modelid:(VAL modelid)

Versions and Changes ​

Available since ADOxx 1.3