In addition to Jon's code I would use the debugger and this loop to see what the scale is so that I am sure that I am changing the correct values.
Public void CheckRefFileScale (char* unparsedP)
{
ModelRefIteratorP mrIterator;
DgnModelRefP modelP;
mdlModelRefIterator_create (&mrIterator,MASTERFILE,MRITERATE_Root|MRITERATE_PrimaryChildRefs,-1);
while (NULL!= (modelP=mdlModelRefIterator_getNext (mrIterator)))
{
double scale;
mdlRefFile_getParameters (&scale,REFERENCE_SCALE,modelP);
}
mdlModelRefIterator_free (&mrIterator);
}
HTH,