/// <summary> /// Create a new model system /// </summary> /// <param name="name">The name of the project</param> /// <param name="description">A description of the project</param> /// <param name="error">An error message string in case of an error</param> /// <returns>The model system that was created, null if there was an error</returns> public IModelSystem CreateModelSystem(string name, string description, IModelSystemStructure strucuture, List <ILinkedParameter> linkedParameters, ref string error) { var command = new XTMF.Commands.CreateNewModelSystem(this.Configuration, name, description, strucuture, linkedParameters); return(this.XTMFRuntime.ProcessCommand(command, ref error) ? command.GeneratedModelSystem : null); }
/// <summary> /// Create a new model system /// </summary> /// <param name="name">The name of the project</param> /// <param name="description">A description of the project</param> /// <param name="error">An error message string in case of an error</param> /// <returns>The model system that was created, null if there was an error</returns> public IModelSystem CreateModelSystem(string name, string description, IModelSystemStructure strucuture, List<ILinkedParameter> linkedParameters, ref string error) { var command = new XTMF.Commands.CreateNewModelSystem( this.Configuration, name, description, strucuture, linkedParameters ); return this.XTMFRuntime.ProcessCommand( command, ref error ) ? command.GeneratedModelSystem : null; }