The file has to be active to change the material. I just ran into this the other day. Also when I open PM from an assembly there is no save button, you close it with the OK button to accept your changes. I always save the file right after. I lost changes by not doing that back in the dim reaches of time and I've done it ever since.