Print at Dec 15, 2025, 7:26:08 PM

Posted by kingoftailor at Jun 8, 2022, 11:28:29 AM
Autosave 3djs
Hello Emmanuel, Renaud,

I tried to set it to automatically save changes to the file when editing an empty sh3d file, but it returns an error 500.


I have added the following to the currently working planner:

var application = new SweetHome3DJSApplication(
{
readHomeURL: urlBase + "readHome.jsp?home=%s",
writeHomeEditsURL: urlBase + "writeHomeEdits.jsp",
closeHomeURL: urlBase + "closeEditedHome.jsp?id=%s",

furnitureCatalogURLs: [urlBase + "lib/resources/DefaultFurnitureCatalog.json"],
furnitureResourcesURLBase: urlBase,
texturesCatalogURLs: [urlBase + "/lib/resources/DefaultTexturesCatalog.json"],
texturesResourcesURLBase: urlBase,
userLanguage: "hu",
autoWriteDelay: 2000,
autoWriteTrackedStateChange: true,

});

What else should be set up for autosave to work?

Thanks, Gábor