confused How to add new 3d models for SweetHome3D JS?

This topic has been viewed 126413 times and has 11 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
son87a
Posts: 12
Joined: Thu Oct 28, 2021 7:35 am

Re: How to add new 3d models for SweetHome3D JS?

Post by son87a »

Hi,
When I add applicationParams.furnitureCatalogURLs = ["lib/resources/DefaultFurnitureCatalog.json"];
The console show error:

Code: Select all

TypeError: a.getResourceBundles is not a function
    at DefaultFurnitureCatalog.readFurnitureCatalog (sweethome3d.min.js:20)
    at DefaultFurnitureCatalog.readDefaultFurnitureCatalogs (sweethome3d.min.js:20)
    at new DefaultFurnitureCatalog (sweethome3d.min.js:20)
    at new DefaultUserPreferences (sweethome3d.min.js:20)
    at SweetHome3DJSOnlineApplication.SweetHome3DJSApplication.getUserPreferences (sweethome3d.min.js:20)
    at new a (sweethome3d.min.js:20)
    at SweetHome3DJSOnlineApplication.SweetHome3DJSApplication.createHomeController (sweethome3d.min.js:20)
    at sweethome3d.min.js:20
    at a.fireCollectionChanged$java_lang_Object$int$com_eteks_sweethome3d_model_CollectionEvent_Type (sweethome3d.min.js:20)
    at a.fireCollectionChanged (sweethome3d.min.js:20)
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: How to add new 3d models for SweetHome3D JS?

Post by Puybaret »

For more information about adding 3D models to Sweet Home 3D JS, see also my answer here.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest