There is a way to do this:
Traverse all IDisplayDimension (This interface implements the iterator pattern).
Get the IDimension object from the DisplayDimension object and then change its value (Use SetValue3 for configuration-specific value).
Repeat the same process for all of your files, however,
it can be problematic that your DisplayDimensions can have different names in different part files, how do you intend to work that out in your logic?