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.
Get attached part in VSTA.
Klaus
✭✭
in RobotStudio
My robot attach a Part with 3 bodies. During simulation i need to delete 2 of the buddies in the part.
To do that i need help to 2 examples.
1. Find atacched part of the robot.
2. Delete body in exixting part found in question 1.
VB or C#
PS. Would bee nice if VSTA/API had its own tropic
BR Klaus
Best Regards
Klaus Soenderhegn
www.cadalysator.dk
Klaus Soenderhegn
www.cadalysator.dk
0
Comments
-
Hi Klaus,Try this:
Station actStn = Project.ActiveProject as Station;
foreach (Attachment at in actStn.Attachments)
{
if (at.AttachmentParent.Name == "MyRobot")
{
GraphicComponent gc = at.AttachmentChild as GraphicComponent;
gc.Name = "AttachedPart";
Part p = actStn.GraphicComponents["AttachedPart"] as Part;
Body b = p.Bodies[0];
p.Bodies.Remove(b);
}
}Best regards,
Anders Spaak
ABB Robotics0
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