Beispiel #1
0
 public int InstallCommands(RobotCmdList cmdList)
 {
     try
     {
         cmdList.New(1, "Hello World");
         return(1);
     }
     catch
     {
         return(0);
     }
 }
Beispiel #2
0
 public int InstallCommands(RobotCmdList cmdList)
 //Function will be called up by the application to obtain information about the commands that are made
 //available by the extension. List specified by the parameter should be filled out with the information
 //about all the commands defined by the extension. If the operation is performed successfully,
 //the function should return a value different from zero (True).
 {
     try
     {
         for (int i = 1; i <= cmdList.Count; i++)
         {
             AddInMngr.InstallCommand(AddInId, i);
             //Add-ins Manager keeps tracks to all add-ins currently registered in Robot.
         }
         return(1);
     }
     catch
     {
         return(0);
     }
 }
 public int InstallCommands(RobotCmdList cmd_list)
 {
     cmd_list.New(1, "Export slab reinforcement to .dxf"); // Text in Robot menu
     return(cmd_list.Count);
 }
Beispiel #4
0
 public int InstallCommands(RobotCmdList cmd_list)
 {
     cmd_list.New(1, "My Command 1"); // Text in Robot menu
     return(cmd_list.Count);
 }
Beispiel #5
0
 public int InstallCommands(RobotCmdList cmd_list)
 {
     cmd_list.New(1, "Orient grid elements");
     return(cmd_list.Count);
 }