Save and restore projects to and from disk #7

Open
opened 2019-12-13 00:48:39 +00:00 by glen · 0 comments
Owner

We should be able to create a text file that records the current project, produce a blob from it, and provide a URL for that blob which will allow the user to save it as if they were downloading it. Maybe we would use a .dy3 file extension, which does not seem to be in use by anything out there. The project should include the current assembly and persistent editor settings, like axis settings.

We could use the File API to load a project from a file. The data would be accessed through a FileReader object, which can read from a File or a Blob.

We should be able to create a text file that records the current project, produce a [blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) from it, and provide a URL for that blob which will allow the user to save it as if they were downloading it. Maybe we would use a `.dy3` file extension, which does not seem to be in use by anything out there. The project should include the current assembly and persistent editor settings, like axis settings. We could use the [File API](https://developer.mozilla.org/en-US/docs/Web/API/File_API) to load a project from a file. The data would be accessed through a [`FileReader`](https://developer.mozilla.org/en-US/docs/Web/API/FileReader) object, which can read from a [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) or a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob).
glen added the
enhancement
label 2019-12-13 00:48:39 +00:00
Vectornaut changed title from Save and restore configurations to Save and restore assemblies to and from disk 2025-03-13 22:15:08 +00:00
Vectornaut added a new dependency 2025-03-13 22:15:36 +00:00
Vectornaut changed title from Save and restore assemblies to and from disk to Save and restore projects to and from disk 2025-03-13 22:19:40 +00:00
Vectornaut added this to the Demo project 2025-03-14 00:01:32 +00:00
Sign in to join this conversation.
No description provided.