find_elements
Search places and transitions by name substring to retrieve their IDs and coordinates, enabling placement of new elements near existing ones.
Instructions
Search places and transitions by name substring.
Use this to locate element IDs before calling find_free_position, set_positions, or move_elements_by. Much faster than list_elements when you only need a specific pattern's elements.
Typical workflow for placing a new element near an existing one:
find_elements("Generator") — find anchor element ID and its x,y
find_free_position(near_element_id=, direction="above") — clear coordinates
add_place(name=..., x=, y=)
Args: name_pattern: Case-insensitive substring (e.g. "Generator", "Queue"). Empty string returns all elements of the requested type. element_type: "place", "transition", or omit for both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name_pattern | No | ||
| element_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |