

You can also try out the other demos in the demos directory (also available through ).

In order to run the examples from another origin (for instance, your own domain, then you need a retailer API key and you need to contact us for getting one). ⚠️ For security reasons, the demo server will only work when accessed from a site that is running on localhost:8000. Test by opening in a browser, to open a defautl sh3d file.Start a local web server running on 8000 (for instance with Python 2: python -m SimpleHTTPServer).Run your website on localhost:8000 (as explained hereafter) to get the following result:įor a quickstart and more examples, you can try out the demo service, just by using the given demos provided in the demos directory. var homeName = "emptyHome" var urlBase = "" var application = new SweetHome3DJSApplication ( ) Then, you need the following elements in your document's body:
