
Cannot name face

Kevin
✭✭
in RobotStudio
This works OK when a body is selected:[CODE]private void SelectionChanged(object sender, GraphicPickEventArgs e)
// This method executes when an object is selected in the graphics pane
{
Body body = e.PickedObject as Body;
if (body != null)
{
body.Name = "body_1";
}
}[/CODE] ... but 'face.Name = "face_1";' fails with a fatal error when a face is selected:[CODE]private void SelectionChanged(object sender, GraphicPickEventArgs e)
// This method executes when an object is selected in the graphics pane
{
Face face = e.PickedObject as Face;
if (face != null)
{
face.Name = "face_1";
}
}[/CODE]
How do I name a face?
Thanks,
Kevin
// This method executes when an object is selected in the graphics pane
{
Body body = e.PickedObject as Body;
if (body != null)
{
body.Name = "body_1";
}
}[/CODE] ... but 'face.Name = "face_1";' fails with a fatal error when a face is selected:[CODE]private void SelectionChanged(object sender, GraphicPickEventArgs e)
// This method executes when an object is selected in the graphics pane
{
Face face = e.PickedObject as Face;
if (face != null)
{
face.Name = "face_1";
}
}[/CODE]
How do I name a face?
Thanks,
Kevin
0
Comments
-
Hi Kevin,
Faces cannot be named.
regards,
Johannes
Johannes Weiman
Software Engineer
ABB Robotics0 -
Thanks Johannes,
I will have to make a dictionary of faces and names as a workaround.
Regards,
Kevin
0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings