RapidDataSearchRapidSymbol Method |
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
Exceptions
Examples This example retrieves all RAPID data instances in use in the scope of the RapidData argument.
The returned instances are added to a listview.
private void ListSurroundingRapidData(RapidData rd)
{
try
{
RapidSymbolSearchProperties sProp =
RapidSymbolSearchProperties.CreateDefault();
sProp.SymbolType = SymbolTypes.RapidData;
sProp.IsInUse = true;
sProp.SearchMethod = SymbolSearchMethod.Scope;
RapidSymbol[] datas = rd.SearchRapidSymbol(sProp,string.Empty,string.Empty);
foreach (RapidSymbol rs in datas)
{
ListViewItem li = new ListViewItem(rs.Name);
li.SubItems.Add(rs.Scope[1]);
listView1.Items.Add(li);
}
}
catch (System.Exception ee)
{
}
}
See Also