Skip to content

SET_MOUSE_ACCESS

SET_MOUSE_ACCESS locks or unlocks the mouse access on all objects of a class in a model or on a single object.

Syntax

leo-grammar
CC "Modeling"
SET_MOUSE_ACCESS	ObjSpec [ access:boolValue ] .


ObjSpec :	ClassByName | SingleObj .


ClassByName :	[ model:idValue ] classname:strValue .



SingleObj :	objid:idValue .
CC "Modeling"
SET_MOUSE_ACCESS	ObjSpec [ access:boolValue ] .


ObjSpec :	ClassByName | SingleObj .


ClassByName :	[ model:idValue ] classname:strValue .



SingleObj :	objid:idValue .
leo-grammar
# --> RESULT ecode:intValue .
# --> RESULT ecode:intValue .

Parameters

  • modelid (idValue, optional) -
  • classname (strValue) -
  • objid (idValue) -
  • access (boolValue) -

Returns

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

Details

SET_MOUSE_ACCESS should not be used to implement view modes (variants). Use SET_OBJ_VISIBLE instead.

See Also

SET_OBJ_VISIBLE

Examples

asc
CC "Modeling" GET_SELECTED
FOR objid in:(objids) {
    CC "Modeling" SET_MOUSE_ACCESS objid:(VAL objid) access:0
}
CC "Modeling" GET_SELECTED
FOR objid in:(objids) {
    CC "Modeling" SET_MOUSE_ACCESS objid:(VAL objid) access:0
}

Versions and Changes

Available since ADOxx 1.3