public void Close() { SP.Logout(); SP.CloseDatabase(); SP = null; Console.WriteLine("Closed SimaPro"); }
public Project(string name) { ProjectName = name; SP = new SimaProServer(); SP.Server = "[email protected]"; // "[email protected]" if multi user SP.Alias = "Default"; // "Default" if multi user SP.Database = "UARK_MAIN_SPv8"; SP.OpenDatabase(); SP.Login("Nick", ""); // values ignored for single user SP.OpenProject(ProjectName, ""); Console.WriteLine("Opened database and project"); }