Database.getAttributes


getAttributes(attrType, [arg2])

Fetches all attributes/utilities of the given type as an array. The array can then be looped in the normal way. Note that if only a results file is loaded (i.e. without the corresponding model) only attribute IDs will be in the array. Otherwise the array will be filled with attribute objects Optionally, output can be restricted to only those with the given name(s) and/or in the given range of IDs. The array can then be looped in the normal way.

attrTypestring "Loading", "Support", "Material", etc
arg2optional string names and/or IDs of attributes, e.g. "bob;1T5" (default all)
Return valuearray of Attribute objects the returned array

Back to Database

Back to Overview