We are not doing the same thing, I am using the diagram scope method instead of the element scope method, terminology thanks to Takeshi, because my understanding is that if I don't the changes. This is because my understanding, perhaps incorrect, is that the element scope method applies to every single diagram that is using that element, but I could be wrong.
Element scope method
Right click on the class on the diagram, choose Compartment Visibility, click on the button Custom in the Attribute Visibility section and check the checkboxes next to the attributes I want to hide.
Diagram scope method
Right click on the diagram, choose Features, and type of cut and past a list of attributes to hide.
Ah, I understand. In fact the element scope method is also limited to this particular diagram.
I've never actually used the diagram scope option before. It could be very useful for hiding things like technical columns in tables (created_by, created_date, valid_from,....) because then you want to hide them from all tables on the diagram, so name based would be the best approach.
If you want to hide certain particular attributes I guess the element scope method works best (and keeps working even if you rename the attribute)
Geert