/// <summary>
 /// Shorthand tool used to run a simulation.
 /// </summary>
 /// <param name="Sim">the simulation to run...</param>
 /// <returns>the completed simulation...</returns>
 public static Simulation_Type Run_Simulation(Simulation_Type Sim)
 {
     UI.PachydermAc_PlugIn  plugin  = UI.PachydermAc_PlugIn.Instance;
     UI.Pach_RunSim_Command command = UI.Pach_RunSim_Command.Instance;
     if (command == null)
     {
         return(null);
     }
     command.Reset();
     command.Sim = Sim;
     Rhino.RhinoApp.RunScript("Run_Simulation", false);
     return(command.Sim);
 }
Beispiel #2
0
 public void Reset()
 {
     Sim           = null;
     CommandResult = Result.Nothing;
 }
 /// <summary>
 /// Shorthand tool used to run a simulation.
 /// </summary>
 /// <param name="Sim">the simulation to run...</param>
 /// <returns>the completed simulation...</returns>
 public static Simulation_Type Run_Simulation(Simulation_Type Sim)
 {
     UI.PachydermAc_PlugIn plugin = UI.PachydermAc_PlugIn.Instance;
     UI.Pach_RunSim_Command command = UI.Pach_RunSim_Command.Instance;
     if (command == null) { return null; }
     command.Reset();
     command.Sim = Sim;
     Rhino.RhinoApp.RunScript("Run_Simulation", false);
     return command.Sim;
 }
 public void Reset()
 {
     Sim = null;
     CommandResult = Result.Nothing;
 }