def demo_GeometricConstraints_addParallel(sketch: adsk.fusion.Sketch): # Create two sketch lines. lineOne = sketch.sketchCurves.sketchLines.addByTwoPoints(adsk.core.Point3D.create(0, 0, 0), adsk.core.Point3D.create(0, 10, 0)) lineTwo = sketch.sketchCurves.sketchLines.addByTwoPoints(adsk.core.Point3D.create(2, 5, 0), adsk.core.Point3D.create(13, 10, 0)) # Create a parallel constraint between the two lines. constraints = sketch.geometricConstraints parallelConstraint = constraints.addParallel(lineOne, lineTwo)