I’d like to programmatically adjust the value of a Parameter cell in the Non-Sequential Editor, something like:
TheSystem.NCE.GetObjectAt(obj_num).GetObjectCell(cell_num).DoubleValue = value;
However, GetObjectCell only takes a ObjectColumn enum as an argument, and the ObjectColumn enum does not seem to accept assignment from an integer. I can write a lengthy switch block that returns the appropriate ObjectColumn enum based on an integer input, but that seems like an ugly solution, when (according to the manual), the enum value for the Parameter columns is the parameter number plus 10, i.e. the following should work:
TheSystem.NCE.GetObjectAt(obj_num).GetObjectCell(param_num + 10).DoubleValue = value;
However, this generates an error. I tried using cast, e.g.
param_col = cast(param_num + 10, ‘ZOSAPI.Editiors.NCE.ObjectColumn’);
but this generates an error.
Any suggestions appreciated.