Skip to content

SET_FOCUS_NODE ​

SET_FOCUS_NODE sets the focus to the node specified with the argument objid.

Syntax ​

leo-grammar
CC "Modeling" SET_FOCUS_NODE objid:idValue .

Parameters ​

  • objid (idValue) -

Returns ​

none

Details ​

Activity "aktiv5" recieved the focus.

SET_FOCUS_NODE

Returns an error when the intVal passed in the argument objid is not valid or not the id of a node.

See Also ​

Examples ​

asc
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid

CC "Core" GET_ALL_OBJS modelid:(VAL modelid)

FOR objid in:(objids)
{
   CC "Modeling" SET_FOCUS_NODE objid:(VAL objid)
   CC "AdoScript" SLEEP ms:1000
}

The example gets all objects in the current model and then focuses one after the other for one second.

Versions and Changes ​

Available since ADOxx 1.3