Skip to content

GET_ALL_VIEW_MODES ​

GET_ALL_VIEW_MODES returns all view modenames in the model passed with modelid.

Syntax ​

leo-grammar
CC "Modeling" GET_ALL_VIEW_MODES [ model:idValue ] .


# --> RESULT ecode:intValue modenames:strValue
CC "Modeling" GET_ALL_VIEW_MODES [ model:idValue ] .


# --> RESULT ecode:intValue modenames:strValue

Parameters ​

  • modelid (idValue) -

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • modenames (strValue) -

Details ​

If no modelid is passed, the current active model will be taken. The modenames are separated with '\n'

The return value ecode is set to 0 if the the command worked, to 1 if an error occured.

See Also ​

Examples ​

asc
CC "Modeling" GET_ALL_VIEW_MODES
CC "AdoScript" INFOBOX ("Current view modes:\n\n" + modenames)
CC "Modeling" GET_ALL_VIEW_MODES
CC "AdoScript" INFOBOX ("Current view modes:\n\n" + modenames)

Shows all view modes the current active model.

Versions and Changes ​

Available since ADOxx 1.3