Load Merit Function File
zemax_load_merit_function_fileLoad a .MF merit function file into Ansys Zemax OpticStudio to apply optimization targets for your lens design.
Instructions
Load a .MF merit-function file.
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": {
"filePath": "<filePath>"
},
"name": "zemax_load_merit_function_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute .MF file path |