Replace Line with LineSegment

It doesn't run with Line
This commit is contained in:
Ed Williams
2022-04-07 17:12:45 -10:00
committed by wwmayer
parent 3ba8359d33
commit daaf81e346

View File

@@ -15,7 +15,7 @@ if(App.activeDocument() is None):App.newDocument()
f = App.activeDocument().addObject("Sketcher::SketchObject","Sketch")
# add geometry to the sketch
f.Geometry = [Line(Vector(0,0,0),Vector(2,20,0)),Line(Vector(0,0,0),Vector(20,2,0))]
f.Geometry = [LineSegment(Vector(0,0,0),Vector(2,20,0)),LineSegment(Vector(0,0,0),Vector(20,2,0))]
# add constraints to the sketch
f.Constraints = [Constraint('Vertical',0),Constraint('Horizontal',1)]