ikeough/Dynamo — pull request #791 by frankfralick (2013-11-20 21:42:33+00:00)
Title: Generic ElementsContainer in DynamoCore

Extending Dynamo to other applications beyond Revit will require coding a class that is much the same as Dynamo.Revit.ElementsContainer. The difference will be the type being contained, and an application specific method for destroying objects.

Making a generic ElementsContainer class that an application specific container class (in this case RevitElementsContainer) must inherit from makes this step more obvious.

The responsibility of new projects coding to DynamoCore would be to create a class MyApplicationElementsContainer, that inherits from Dynamo.Core.ElementsContainer , and to override ElementsContainer's virtual DestroyElement method with the application specific methods and exception handling.