aStartPoint = geomDataAPI_Point2D(anOY.attribute("StartPoint"))
anEndPoint = geomDataAPI_Point2D(anOY.attribute("EndPoint"))
aStartPoint.setValue(0., 0.)
- anEndPoint.SetValue(0., 100.)
- anOY.selection("External").selectSubShape("EDGE", "OY")
+ anEndPoint.setValue(0., 100.)
+ anOYRes = modelAPI_Result(self.aDocument.objectByName("Construction", "OY"))
+ anOY.selection("External").setValue(anOYRes, anOYRes.shape())
+ anOY.execute()
refattrB.setObject(modelAPI_ResultConstruction(anOY.firstResult()))
value = aDistanceConstraint1.real("ConstraintValue")
value.setText("x1 + 10.0")
aStartPoint = geomDataAPI_Point2D(anOX.attribute("StartPoint"))
anEndPoint = geomDataAPI_Point2D(anOX.attribute("EndPoint"))
aStartPoint.setValue(0., 0.)
- anEndPoint.SetValue(100., 0.)
- anOX.selection("External").selectSubShape("EDGE", "OX")
+ anEndPoint.setValue(100., 0.)
+ anOXRes = modelAPI_Result(self.aDocument.objectByName("Construction", "OX"))
+ anOX.selection("External").setValue(anOXRes, anOXRes.shape())
+ anOX.execute()
refattrB.setObject(modelAPI_ResultConstruction(anOX.firstResult()))
value = aDistanceConstraint2.real("ConstraintValue")
value.setText("x1 + 20.0")