Skip to content

SET_VIEW_MODE

SET_VIEW_MODE sets the current modename in the model passed with modelid.

Syntax

leo-grammar
CC "Modeling" SET_VIEW_MODE [ model:idValue ] mode-name:strValue .


# --> RESULT ecode:intValue
CC "Modeling" SET_VIEW_MODE [ model:idValue ] mode-name:strValue .


# --> RESULT ecode:intValue

Parameters

  • modelid (idValue) -
  • mode-name (strValue) -

Returns

  • ecode (intValue) - the return value ecode is set to 0 if the the command worked, to 1 if an error occured.

Details

If no modelid is passed, the current active model will be taken.

See Also

Examples

asc
CC "Modeling" GET_ALL_VIEW_MODES
CC "Modeling" SET_VIEW_MODE mode-name:(token(modename,1,"\n"))
CC "Modeling" GET_ALL_VIEW_MODES
CC "Modeling" SET_VIEW_MODE mode-name:(token(modename,1,"\n"))

Sets the current view mode to the second view mode in the current active model

Versions and Changes

Available since ADOxx 1.3