aBaseObject.setValue(aPipeFeature)
aRecoveredObjects = aRecover.reflist("recovered")
aRecoveredObjects.append(aFaceResult1)
+aRecoveredObjects.append(aWireResult)
aSession.finishOperation()
# Create pipe with bi-normal
aSession.startOperation()
aPipeFeature = aPart.addFeature("Pipe")
aBaseObjectsList = aPipeFeature.selectionList("base_objects")
-aBaseObjectsList.append(aRecover.firstResult(), None)
+aBaseObjectsList.append(aRecover.lastResult(), None)
aPathObjectSelection = aPipeFeature.selection("path_object")
-aPathObjectSelection.setValue(aWireResult, None)
+aPathObjectSelection.setValue(aRecover.firstResult(), None)
aPipeFeature.string("creation_method").setValue("binormal")
aBinormalObjectSelection = aPipeFeature.selection("binormal")
aShapeExplorer = GeomAPI_ShapeExplorer(aSketchShape, GeomAPI_Shape.EDGE)
aBaseObject.setValue(aPipeFeature)
aRecoveredObjects = aRecover2.reflist("recovered")
aRecoveredObjects.append(aRecover.firstResult())
+aRecoveredObjects.append(aRecover.lastResult())
aSession.finishOperation()
# Create pipe with locations
aBaseObjectsList.append(aRecover2.firstResult(), None)
aBaseObjectsList.append(aFaceResult2, None)
aPathObjectSelection = aPipeFeature.selection("path_object")
-aPathObjectSelection.setValue(aWireResult, None)
+aPathObjectSelection.setValue(aRecover2.lastResult(), None)
aPipeFeature.string("creation_method").setValue("locations")
aSession.finishOperation()