-# Copyright (C) 2016 CEA/DEN, EDF R&D
+# Copyright (C) 2016-2024 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
datafile = os.path.join(GetMEDFileDirTUI(), "smooth_surface_and_field.med")
source_id = medcalc.LoadDataSource(datafile)
-presentation_id = medcalc.MakeMeshView(accessField(0), MEDCALC.VIEW_MODE_REPLACE)
+presentation_id = medcalc.MakeMeshView(0, MEDCALC.VIEW_MODE_REPLACE) # here the ID of the mesh directly
sleep(1)
medcalc.RemovePresentation(presentation_id)
sleep(1)