PDA

View Full Version : Selections



jbervel
2010-05-05, 07:09 AM
Hi,

I have created a structure with the API. I have asigned names to groups of bars with the function:

Me.Str.Bars.SetNameTemplate(NUMBER_BAR, NAME)

I can select bars selecting the NameTemplate from the Robot interface in the dialog box Selection.

Does anyone know how can I do the same with the Robot API?

Thanks

marek.wiecek
2010-05-06, 04:20 PM
There is no sigle function defined in Robot API to select bars by their names. You can iterate bars and check their names to decide whether you want to select it or not.

You can also use the mechanism of grouping bars and use name of the group to select all bars belonging to given group.

I'm not sure what do you want to achieve using bar names.