contact.groupmap
Syntax
- m := contact.groupmap(s<,slot,stype>)
Get active contacts that belong to a group. A map is returned where the keys are the active contact ID numbers and the values are the active contact pointers. The arguments s and slot may be specified as strings or indices*. If slot is not specified, then all slots are queried.
One may optionally specify a contact class (i.e., ‘ball-ball’) or type (i.e., ‘mechanical’) as the last argument.
Note
*Use the group.find
and group.find.slot
intrinsics to obtain group and slot indices, respectively, and for further information.
Use of the group logic is described in Groups.
See also
Was this helpful? ... | Itasca Software © 2024, Itasca | Updated: Oct 31, 2024 |