API Document.Rebuild

Has anyone used the API call to Rebuild on a document?  It doesn't seem to be working for me.

I have a document that has several fields.  From the command line I can run REBUILD and all the fields update.  But from code, a call to Document.Rebuild does not update any of the fields.  I have made the call using both "active viewport" and "all viewports", but the result is the same.   When I replace the call to Rebuild with RunCommand("REBUILD") the fields are updated as expected.  The Document object is valid, and other operations through the Document interface work just fine.

Does the Rebuild function in the API work?