Get ToolControlBase.Apply event
                
                    DenisFR                
                
                     ✭✭✭                
            
                        
            
                    Hello,
I want to update my SmartComponent (who read RapidData) when I apply modification.
I see that a ToolControlBase.Apply exists, but I can't find where this is declared as this is not static.
                
                I want to update my SmartComponent (who read RapidData) when I apply modification.
I see that a ToolControlBase.Apply exists, but I can't find where this is declared as this is not static.
☑️2024 - RobotStudio® User Group
0  
            Comments
- 
            Hello,
I've found how should to do, but this doesn't work:using ABB.Robotics.RobotStudio.Environment;<br>...<br> public override void OnLoad(SmartComponent component)<br> {<br> base.OnLoad(component);<br> //Connect to Apply Button<br> CommandBarControl commandBarControl = UIEnvironment.RibbonTabs["RAPID"].Groups["Controller"].Controls["RapidApplyMenu"];<br> if (commandBarControl!=null)<br> {<br> ((CommandBarPopup)commandBarControl).ClickButton.ExecuteCommand += ClickButton_ExecuteCommand;<br> ((CommandBarButton)((CommandBarPopup)commandBarControl).Controls["RapidApplyAll"]).ExecuteCommand += ClickButton_ExecuteCommand;<br> ((CommandBarButton)((CommandBarPopup)commandBarControl).Controls["RapidModuleApply"]).ExecuteCommand += ClickButton_ExecuteCommand;<br> }<br> string s = "";<br> }<br><br> private void ClickButton_ExecuteCommand(object sender, ExecuteCommandEventArgs e)<br> {<br> throw new NotImplementedException();<br> }<br><br>ClickButton_ExecuteCommand is never called...
Does RobotStudio.UI.Rapid.EditorManagement{Void ApplyAll_ExecuteCommand(System.Object, ABB.Robotics.RobotStudio.Environment.ExecuteCommandEventArgs)} raise event?
☑️2024 - RobotStudio® User Group0 - 
            Any news?
☑️2024 - RobotStudio® User Group0 
Categories
- All Categories
 - 5.6K RobotStudio
 - 401 UpFeed
 - 21 Tutorials
 - 15 RobotApps
 - 306 PowerPacs
 - 407 RobotStudio S4
 - 1.8K Developer Tools
 - 250 ScreenMaker
 - 2.9K Robot Controller
 - 363 IRC5
 - 81 OmniCore
 - 8 RCS (Realistic Controller Simulation)
 - 853 RAPID Programming
 - 31 AppStudio
 - 4 RobotStudio AR Viewer
 - 19 Wizard Easy Programming
 - 110 Collaborative Robots
 - 5 Job listings