Home
›
RobotStudio
How to change collision set with a smart component?
EricH
Germany
✭
September 2019
in
RobotStudio
I want to update a collision set with a smart component. Is that somehow possible?
Tagged:
smart components
collision detection
0
·
Share on Facebook
Answers
scottdf93
United Kingdom
✭
October 2020
edited October 2020
// Index through the collision sets in a station
for (int i = 0; i < station.CollisionSets.Count; i++)
{
// We make a change to the collision set
station.CollisionSets[i].Name = "Changed Name";
}
OR
station.CollisionSets.First(x => x.DisplayName == "SpecificName").CollisionColor = Color.Black;
0
·
Share on Facebook
EricH
Germany
✭
October 2020
This is via SDK right?
0
·
Share on Facebook
Sign In
or
Register
to comment.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Unanswered
Best Of...
Categories
4.8K
RobotStudio
299
UpFeed
258
PowerPacs
401
RobotStudio S4
2
RobotStudio AR Viewer
473
RAPID Programming
8
Wizard Easy Programming
2.3K
Robot Controller
96
IRC5
7
OmniCore
3
RCS (Realistic Controller Simulation)
1.6K
Developer Tools
216
ScreenMaker
71
YuMi
In this Discussion
October 2020
EricH
October 2020
scottdf93
Answers
for (int i = 0; i < station.CollisionSets.Count; i++)
{
// We make a change to the collision set
station.CollisionSets[i].Name = "Changed Name";
}
OR
station.CollisionSets.First(x => x.DisplayName == "SpecificName").CollisionColor = Color.Black;