Guilin Sun
Ansys Employee

I have little experience using this optimization. But give the following suggestions:

The error message "ERROR: Object not known" could be indicative of various issues. One possible reason for this error could be a corrupted optislang.ini file. To resolve this, you can locate the optislang.ini file at C:\Users\yourusername\AppData\Roaming\Dynardo, delete it, and restart Optislang. If this does not resolve the issue, you may need to delete the file again and reinstall Optislang . 
 
You may also refer to this example https://optics.ansys.com/hc/en-us/articles/4404715023251-Optimizing-Wire-Grid-Polarizer-optiSLang-Interoperability
 
and the documentation https://www.ansys.com/products/connect/ansys-optislang