How to open an agent' view area on startup?

242 Views Asked by At

how can I open an agent specific view area when enter in some agent during model execution? Alternatively setup a specific zoom level that will contains all the blocks?

1

There are 1 best solutions below

0
On BEST ANSWER

Either you use the "onStartup" code field for Main using myViewArea.navigateTo(). You can set zoom levels in the view-area properties.

If you want to set a specific agent's view, you should do that in the button that navigates to that agent, using the code above (i.e. the default AnyLogic view controls at the top of your sim window will always take you to the 0,0-position).

PS: Some more useful info in my blog post on view areas.