Print at Mar 7, 2021, 6:19:54 AM

Posted by Puybaret at Sep 22, 2016, 4:04:27 PM
Re: Export HTML5 plug-in
You should call the method getClosestItemAt available in HomeComponent3D class in a listener added to the displayed canvas. If the returned object is an instance of HomePieceOfFurniture, then you may call its getCatalogId method to get its catalog ID and do whatever you want.
The HomeComponent3D instance is returned by the getComponent3D method available on the object returned by viewHome function.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer