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 objects in component groups with VSTA
in RobotStudio
Hi,
example code:
gcTray = activeStation..GraphicComponents["FullTray_1_" + i];
This works fine as long as the graphic component is not part of a component group in Studio - how can I access the part if it is in a group?
When there are lots of them, it makes sense to use a group to keep the layout browser neat and tidy, and also to use a macro to index.
thanks.
0
Comments
-
Hi Dean,
You need to drill down the component hierarchy, something like this:
[code]GraphicComponentGroup gcg = station.GraphicComponents["name_of_group"] as GraphicComponentGroup;
GraphicComponent gc = gcg.GraphicComponents["name_of_component"];
[/code]
regards,
Johannes
Johannes Weiman
Software Engineer
ABB Robotics0 -
THANKS
0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 366 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 856 RAPID Programming
- 40 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings
