Click or drag to resize

RapidSymbolName Property

Gets the name of the RapidSymbol.

Namespace:  ABB.Robotics.Controllers.RapidDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public string Name { get; }

Property Value

Type: String
Examples
This example lists all RAPID data instances and functions of datatype num declared in task T_ROB1. The name of RapidSymbol and the module where it is declared are added to a listview.
private void btnSearch_Click(object sender,EventArgs e)
{
    try
    {
        // Create Task if not done
        if (tT_Rob1 == null)
            tT_Rob1 = ctrl.Rapid.GetTask("T_ROB1");

        RapidSymbolSearchProperties sProp = 
            RapidSymbolSearchProperties.CreateDefault();
        sProp.SymbolType = SymbolTypes.Function | SymbolTypes.RapidData;
        sProp.IsInUse = false;
        sProp.SearchMethod = SymbolSearchMethod.Block;

        RapidSymbol[] datas = tT_Rob1.SearchRapidSymbol(sProp,"num",string.Empty);

        foreach (RapidSymbol rs in datas)
        {
            ListViewItem li = new ListViewItem(rs.Name);

            // [<TASK>,<MODULE>,...]
            li.SubItems.Add(rs.Scope[1]);

            // Add item
            listView1.Items.Add(li);
        }
    }
    catch (System.Exception ee)
    {
        // Handle any error here
    }
}
See Also