public void KarvoniteOut(string filename) { ObjectSpace objectSpace = new ObjectSpace("MapModel.kvtmodel,Paradux", filename); objectSpace.CreateObjectLibrary(true); // Open ObjectSpace (empty up to this point) objectSpace.Open(); objectSpace.Add(this); // Ensures changes objectSpace.Save(); objectSpace.Close(); }