X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FTest%2FTestHighload.py;h=82075373941b56c8f5f03bbc14f4c920afbbd744;hb=d34842c50d5f335cca443c78910c16c54139c7d0;hp=f8fed6087f82e0ddf6147a1696b4aecdb97ab8b7;hpb=d29ed3f3f7c0e119d2917b2d4120aa7b473220f4;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/Test/TestHighload.py b/src/SketchPlugin/Test/TestHighload.py index f8fed6087..820753739 100644 --- a/src/SketchPlugin/Test/TestHighload.py +++ b/src/SketchPlugin/Test/TestHighload.py @@ -41,6 +41,7 @@ def createNAngle(theSketch, theN, theRadius, theEdgeLength=0): anEndPoint = geomDataAPI_Point2D(aSketchLine.attribute("EndPoint")) aStartPoint.setValue(begin[0], begin[1]) anEndPoint.setValue(end[0], end[1]) + aSketchLine.execute() allStartPoints.append(aStartPoint) allEndPoints.append(anEndPoint) allLines.append(aSketchLine) @@ -90,13 +91,11 @@ aDocument = aSession.moduleDocument() #========================================================================= aSession.startOperation() aSketchCommonFeature = aDocument.addFeature("Sketch") -aSketchFeature = modelAPI_CompositeFeature(aSketchCommonFeature) +aSketchFeature = featureToCompositeFeature(aSketchCommonFeature) origin = geomDataAPI_Point(aSketchFeature.attribute("Origin")) origin.setValue(0, 0, 0) dirx = geomDataAPI_Dir(aSketchFeature.attribute("DirX")) dirx.setValue(1, 0, 0) -diry = geomDataAPI_Dir(aSketchFeature.attribute("DirY")) -diry.setValue(0, 1, 0) norm = geomDataAPI_Dir(aSketchFeature.attribute("Norm")) norm.setValue(0, 0, 1) aSession.finishOperation() @@ -121,3 +120,6 @@ aSession.finishOperation() #========================================================================= # End of test #========================================================================= + +import model +assert(model.checkPythonDump())