BHoM / BHoM_Adapter

GNU Lesser General Public License v3.0
7 stars 5 forks source link

BHoM_Adapter: Add CleanModel command #265

Open IsakNaslundBh opened 3 years ago

IsakNaslundBh commented 3 years ago

Description:

Want to add a CleanModel command that makes sure the adapter gets to a state that is has a completely fresh slate with no elements, properties, load or anything in it.

Useful for interop testing.

Could add a default implementation on the base adapter that first makes a call with the close command, followed by a call to the NewModel command. Then any adapter that want to take different/additional action can do so.

@alelom @al-fisher