BHoM / BHoM_Adapter

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

BHoM_Adapter: add support for ILogicalRequest #241

Open pawelbaran opened 4 years ago

pawelbaran commented 4 years ago

Description:

That works:

image

That does not:

image

It could be simply resolved with a Create.LogicalNotRequest method that would take Type and wrap it into a FilterRequest, however I would like to first check with if that is not too much of a crowbar solution, therefore raised in the BHoM_Adapter. What do you think @alelom?

alelom commented 4 years ago

I would be happy to add the support for this:

So far we have hardcoded support only for FilterRequest because it was deemed "universal". If we make an overhaul of the requests - where the logicalNot becomes one of the basic ones, together with then new FilterRequest (--> to become TypeRequest), then sure, we can add support. But I'd classify this as feature, it's not a bug - BHoM adapter could not know of LogicalNot.

pawelbaran commented 4 years ago

Right, good point about the Feature. When should we expect the overhaul of requests? Would be good to map out handling of ILogicalRequests as a part of it.

alelom commented 4 years ago

Not sure - wasn't you that created the concept of ILogicalRequest (which by the way I like a lot) in revit? You could simply make the case for moving the base interface in the oM, and defining the specific guidelines for that. Then it is a matter of adding the support in the adapter.

pawelbaran commented 4 years ago

It already is in Data_oM together with Create methods in Data_Engine.