Symptom: I ran into a problem when trying the set LDE cell-values for user-defined surfaces with the python ZOS-API. Setting/getting the values (IntegerValue as much as DoubleValue) caused an error:
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'Zemax', 'Expected Double, got 'String'', None, 0, -2147024809), None)
Cause: I could trace back the error to the entries '-' for the 'Chip Zone' and 'Mech Semi-Dia' columns: It seems like an update of these two is triggerred after setting (or getting) a value in the respective LDE row. This update does not tolerate the string-type entry '-'. I looked through several UDS examples and the issue appears the same.
Limited workaround: I found that setting/getting the desired LDE values for the UDS indirectly via the a configuration and the MCE is still possible -- so this can be a workaround for me at the moment. But I can think about systems, where I would not want to include the respective parameters in an already crowded MCE.
My question: is there a way to set the chip zone and mechanical semi-diameter with the UDS DLL? Could they even be calculated inside a DLL? It looks like the standard examples do not include that route, and I could not find entries that I would attribute to the two parameters in the FIXED_DATAn structures.