Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.

Accessing an arrayed UDT from PC SDK App?

I'm trying to access an arrayed variable from a PC SDK app. The UDT is of the following type in an AllTask module called Library

RECORD RobMotionCtrl
num pkAccel
num plAccel
ENDRECORD

I have an array declared as:
PERS RobMotionCtrl RobMotionForCnvPars{2,6}

I tried obtaining the rapid symbol for it using:

            RapidSymbolSearchProperties sProp = RapidSymbolSearchProperties.CreateDefault();
            sProp.Types = SymbolTypes.Data;
            RapidSymbol[] rs = module.SearchRapidSymbol(sProp, "RAPID/T_ROB1/LIBRARY/robmotionctrl", string.Empty);

however it does not return anything.  I have tried case variations of RobMotionCtrl to no avail.  I just get a zero length array back from SearchRapidSymbol.

I didn't have any luck accessing it directly either which is why I'm resorting to doing a symbol search. Any help would be appreciated.


-Sean