X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FTest%2FTestFolder_Remove.py;h=632c88c6e428ada7eb089017c667b8e1739b674f;hb=f2f34e30b41047d12277ad87e1adf6c0e410e4ff;hp=6e78b581f1c6ef9e0142bb20ade505e5ff00861e;hpb=016814c4673909dcd7fd9591694cf599623dfbc7;p=modules%2Fshaper.git diff --git a/src/ModelAPI/Test/TestFolder_Remove.py b/src/ModelAPI/Test/TestFolder_Remove.py index 6e78b581f..632c88c6e 100644 --- a/src/ModelAPI/Test/TestFolder_Remove.py +++ b/src/ModelAPI/Test/TestFolder_Remove.py @@ -22,6 +22,7 @@ # Initialization of the test #========================================================================= from ModelAPI import * +from GeomDataAPI import * __updated__ = "2017-11-24" @@ -33,9 +34,7 @@ def newPoint(theDocument, theX, theY, theZ): aPoint = theDocument.addFeature("Point") aPointData = aPoint.data() assert(aPointData is not None) - aPointData.real("x").setValue(theX) - aPointData.real("y").setValue(theY) - aPointData.real("z").setValue(theZ) + geomDataAPI_Point(aPointData.attribute("point3d")).setValue(theX, theY, theZ) aPointData.string("creation_method").setValue("by_xyz") aSession.finishOperation() return aPoint