I want create a smart component “3D pushbutton” that when it is pressed by the mouse left click generates a digital signal. How can i do it?
Assuming you can’t just use the I/O simulator (easiest way to toggle I/O from RobotStudio graphics), you may need to get into the CodeBehind and write a C# script to do something like "GraphicPick”. Find the RobotStudio SDK and look at how to create a custom smart component.
If you want to make like a real push button in RS, then there is a standard smartcomponent in RS with which you can do this. This the “Graphic Switch” smart component which can be found in “others”. You have to have a part which is visible when the button is pressed and a part which will be invisible when the switch is not pressed.
