Hello,
So I’ve been getting into the zos-api. I’ll not that I have little experience in object-oriented programming, so that might be limiting me. I’ve been trying to be able to target specific columns in the NCE editor for editing and having trouble doing so generically.
Currently, the only way I’ve found to do is the following (as an example):
Object.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Par1).DoubleValue=value
With “par1” being the enum element of ObjectColumn. The problem is, I cant find a way to change that without straight-up adding a new line. So if I wanted to be able to, for example, modify several columns, I would need to have multiple lines, each with their own call. I’ve tried to make a function to do it generically, but I cant figure out a way to change it (The “Par1”).
I’ve found 2 functions that seem related, but dont really allow my to alter that element on the fly.
Enum.Getname finds a string corresponding to the enum element from an interger;
Enum.Parse does the opposite, using a name to generate an interger
I’ve tried looking at python more broadly, but I’m still loking for decent tutorials on OOP in python.
Thanks in advance for any help!