#2264 PLT plot. Filter wells list based on well geometry and production data

This commit is contained in:
Bjørn Erik Jensen
2017-12-14 11:22:44 +01:00
parent 8efcccf5c4
commit f84a535511
4 changed files with 18 additions and 10 deletions

View File

@@ -58,8 +58,18 @@ bool RicNewPltPlotFeature::isCommandEnabled()
if (RicWellLogPlotCurveFeatureImpl::parentWellAllocationPlot()) return false;
RimSimWellInView* simWell = caf::firstAncestorOfTypeFromSelectedObject<RimSimWellInView*>();
RimWellPath* selectedWellPath = caf::firstAncestorOfTypeFromSelectedObject<RimWellPath*>();
bool enable = true;
if (selectedWellPath)
{
if (selectedWellPath->wellPathGeometry() == nullptr && !RimWellPlotTools::hasFlowData(selectedWellPath))
{
return false;
}
}
if (simWell != nullptr)
{
RimProject* proj = RiaApplication::instance()->project();