Please see chapter "Material Functions" :
bim:get-all-availablematerials
© Bricsys NV. All rights reserved.