javascript - How to get the properties group names in autodesk forge -


i know there way property group names in autodesk forge. have tried getproperties() , getbulkproperties() cant group names. how achieve this. in advance.

i need highlighted group names

property group not named group in forge viewer. it's called category in case, , can accessed via displaycategory. here example:

var selection = viewer.getselection(); viewer.getproperties( selection[0], function( result ) {     const props = result.properties;     for( let = 0; < props .length; i++ ) {         const property = props[i];         if( property.hidden) return;          const category = props[i].displaycategory;         if( category && typeof category === 'string' && category !== '' ) {             // property group want             console.log( category );         }     } }); 

btw, can see more detail blog:https://forge.autodesk.com/cloud_and_mobile/2015/05/adding-custom-meta-properties-to-the-viewer-property-panel.html

hope help.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -