diff --git a/ApplicationLibCode/ReservoirDataModel/RigWellPathGeometryExporter.cpp b/ApplicationLibCode/ReservoirDataModel/RigWellPathGeometryExporter.cpp index 29cf2bf816..e9788c64ca 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigWellPathGeometryExporter.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigWellPathGeometryExporter.cpp @@ -41,7 +41,11 @@ void RigWellPathGeometryExporter::exportWellPathGeometry( gsl::not_null( wellPath.get() ); + // Always use top level modeled well path for definitions MD at first coordinate + + const RimModeledWellPath* modeledWellPath = + dynamic_cast( wellPath.get()->topLevelWellPath() ); + if ( modeledWellPath ) { useMdRkb = true;