flexsim_set_variable_code
Replaces a FlexSim object variable with custom FlexScript code and compiles it, enabling custom interarrival times, cycle times, and other simulation parameters; reset the model after changes.
Instructions
替换对象变量为自定义 FlexScript 代码并编译(interarrivaltime=到达间隔、cycletime=加工时间等)。例:code="return 1;" 或 "return exponential(0,5,getstream(current));"。修改后需 reset。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object": "<object>",
"variable": "<variable>",
"code": "<code>"
},
"name": "flexsim_set_variable_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| object | Yes | ||
| variable | Yes |