In the Forge viewer, the property group is referred to as category
instead of group
. To access it, use displayCategory
. Here is an example of how to do so:
var selection = viewer.getSelection();
viewer.getProperties( selection[0], function( result ) {
const props = result.properties;
for( let i = 0; i < props .length; i++ ) {
const property = props[i];
if( property.hidden) return;
const category = props[i].displayCategory;
if( category && typeof category === 'string' && category !== '' ) {
// The property group you want
console.log( category );
}
}
});
For more information, check out this blog post:
I hope this helps.