Please uploaded the problematic model and the macro to reproduce the issue. It would be better if you create a simplified version of the macro to only point to the problem.
Excuse me I'm afraid no one can help you now because only information you have provided is that some specific dimension is not changed with unknown method (there are several APIs which can change the dimension value) .
Application Engineer at Intercad
Tel: +61 2 9454 4444