DynamoDS/Dynamo — pull request #2856 by Randy-Ma (2014-10-27 07:10:22+00:00)
Title: Fix MAGN-2523 Revit Elements not cleaned up after initial failure of the element creation node

When there are exceptions thrown in the constructor, the partly constructed objects are sometimes still added to the life cycle manager and this will make the related Revit elements not deleted.

This submission fixes the issue by attempting to catch the exceptions when rebinding happens. If there are exceptions during the rebinding process, the partly constructed objects will be removed from the life cycle manager. Then the object will be constructed as if it is newly constructed.