Use the shareware utility, but I assume you want this as pure PCL (not interactive) so you will need to find all the material IDs so something like this may guide you:
INTEGER nmats
INTEGER imats(virtual)
STRING mats[32](virtual)
INTEGER status,i
INTEGER i_id, i_cat, i_lin, i_dir, i_type
db_count_materials(nmats)
sys_allocate_array(imats,1,nmats)
sys_allocate_array(mats,1,nmats)
$ Get all the all the material names from the database
Use the shareware utility, but I assume you want this as pure PCL (not interactive) so you will need to find all the material IDs so something like this may guide you:
INTEGER nmats
INTEGER imats(virtual)
STRING mats[32](virtual)
INTEGER status,i
INTEGER i_id, i_cat, i_lin, i_dir, i_type
db_count_materials(nmats)
sys_allocate_array(imats,1,nmats)
sys_allocate_array(mats,1,nmats)
$ Get all the all the material names from the database