undo and rebuild

Hi,

I am using the solidworks api for VB.NET.

I want to change a dimension of a model and then change it back to the original value.

I try to use the undo mark but it doesn't seem to work.

Whenever a dimension is changed, the model needs to be rebuilt to validate the change.

However, it looks like to me that the rebuild operation will clear the undo list.

Does anyone know whether my understanding is right and is there any solution to this?

Thanks.

SolidworksApi macros