Automatic material id nodal