I have a custom block that needs parameter and variable info from the agent passing through it. I would like to design this block for use with different agent types. How do I create a pulldown of all of the available agent types in the current model like in other built-in blocks? I'm assuming it's a parameter with an internal value, but just not sure of the parameter type, method to pull the agent types, etc. See picture below:
Sorry, I wasn't clear. Sometimes I'll insert my block into a flow that has a Cart agent type moving through it. Other times it will be in a flow that has a Person agent type moving through it. Other times, it will be in a PalletJack flow. How do I create a pulldown that lets the block know what type of agent is flowing through it so I can cast the correct agent type to pull the parameters correctly?
ah, ok. See my new answer above
I think he's talking about having his custom blocks include an "Agent type" parameter (as for AnyLogic-provided blocks) so that they can support multiple agent types passing through. (There is no such setting for custom blocks by default and thus no way to out-of-the-box allow, for example, users of the custom block to access a type-specific
agent
in action properties of the block.)