|
python GetArrayVariable problem Loren John Presley from United States [4 posts] |
13 year
|
Hello.
I'm having trouble using the rr.GetArrayVariable() function the python API for roborealm. Not the python program in the pipeline. I'm using the API.
It looks like there is no rr.GetArrayVariable() function in the API examples. Can it be added please? I need it to retrieve the NV_ARRAY_OBJ_IDX variable from the AVM Navigator which is in the pipeline.
Many thanks for your support.
|
|
|
Anonymous |
13 year
|
Loren,
You use the same function for an array (this differs from the internal Python module). What you get back is the array as a single string of all entries separated by commas. You'd need to split or break the array based on a comma in order to gain access to an individual element. Its done this way to ensure that non-binary types of languages can also access arrays.
Or did you try this and get something weird back for NV_ARRAY_OBJ_IDX?
STeven.
|
|
|
Loren John Presley from United States [4 posts] |
13 year
|
Oh, okay.
That should be easy to do, then. Thanks!
|
|