Code: Select all
from FreeCAD import Part # these two lines
from FreeCAD import Sketcher # produce the bugs
geoList = []
geoList.append(Part.LineSegment(App.Vector(-10,10,0),App.Vector(10,10,0)))
geoList.append(Part.LineSegment(App.Vector(10,10,0),App.Vector(10,-10,0)))
geoList.append(Part.LineSegment(App.Vector(10,-10,0),App.Vector(-10,10,0)))
ActiveSketch.addGeometry(geoList,False)
App.ActiveDocument.recompute()
Code: Select all
from FreeCAD import Part # these two lines
from FreeCAD import Sketcher # produce the bugs
- restart FreeCAD
- create a new, empty document in Part Design
- create an empty sketch
- run the script, while the sketch is active. It draws a triangle
- create a pad using the triangle as basis
- try to fillet an edge (or another operation)
Pass 4 tests:
- both lines are active --> bug 1
- only the first line is active --> bug 2
- only the second line is active --> test OK
- none of the lines is active --> test OK