RobotStudio event

Search for defined recordtype with PC SDK

Options
Hello together,

I try to list up a defined type of a record. The task is to build up a tooldatabase on the robot controller.

My Record looks like the following:
RECORD Toolrecord
        string sToolname;
        string sTCPName;
        string sLength;
        string sDiameter;
        num nOperatingTime;
        string sStatus;
    ENDRECORD

If I try to get a defined rapiddata by name it's working fine with the following code:
         RapidData tools = controller.Rapid.GetRapidData("T_ROB1", "HMI_Data", "tools");
I can read and write that values.

As soon I try to search for all defined data of the type Toolrecord the number of found data are 0 with that code:

                RapidSymbolSearchProperties sProp = RapidSymbolSearchProperties.CreateDefault();
                sProp.Types = SymbolTypes.Constant | SymbolTypes.Persistent;
                sProp.InUse = false;
                sProp.Recursive = true;
                ABB.Robotics.Controllers.RapidDomain.Task task = controller.Rapid.GetTask("T_ROB1");
                RapidDataType rsDataTypeExist = controller.Rapid.GetRapidDataType("T_ROB1", "HMI_Data", "tools");
                RapidSymbol[] rsCol = task.SearchRapidSymbol(sProp, rsDataTypeExist);

I tried now to solve that problem with different approaches but till now without any success.

For an advise I would be appreciated
KR/
Michael