DynamoDS/Dynamo — pull request #3360 by Randy-Ma (2014-12-04 07:19:17+00:00)
Title: Fix MAGN-5376 Element.Geometry not working after reopening file.

Summary

I am regenerating the document before attempting to get geometries from elements. This will fix the defect. But because the test cases are running without starting a transaction, I am modifying the test framework to start a transaction in the setup method.

I added a new method OnEvaluationStarted which will be called at the beginning of an evaluation process. This method is overridden in RevitDynamoModel so that a new transaction can be started.

I am removing one call to ForceCloseTransaction in DocumentManager.Regenerate because it will be duplicated with the one call in RevitDynamoModel.OnEvaluationCompleted.

Reviewers

@lukechurch
@pboyer