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.
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
Post a Comment