The AttributesDictionaryInterface stores all the information of all the different attributes in the DMU.
The DMU contains a collection of pieces (3D or not). All these pieces have information located inside them.
The Attribute Dictionary interface is used to query information of all the attributes available in the DMU.
/** * Sample to illustrate the AttributesDictionaryInterface iteration. */ import { DataSessionInterface, AttributesDictionaryInterface, AttributeInfoInterface } from'generated_files/documentation/appinfiniteapi';
// the DataSessionInterface has been created previously and is connected letlDataSession : DataSessionInterface; // retrieve the attributes dictionary constlAttributeDictionary: AttributesDictionaryInterface = lDataSession.getAttributesDictionary(); // get the dictionary to iterate over the attributes constlAttr: Array<AttributeInfoInterface> = lAttributeDictionary.getDictionary(); leti : number; for (i = 0; i < lAttr.length; i += 1) { constlAttrName: string = lAttr[i].getAttributeName(); // output attribute name console.log(lAttrName); }
The AttributesDictionaryInterface stores all the information of all the different attributes in the DMU.
The DMU contains a collection of pieces (3D or not). All these pieces have information located inside them. The Attribute Dictionary interface is used to query information of all the attributes available in the DMU.
The AttributesDictionaryInterface is available through the DataSessionInterface.getAttributesDictionary and DataSessionInterface.getAttributesDictionary functions.
See
DataSessionInterface