def getGeometry(line):
- return line.firstResult()
+ return modelAPI_ResultConstruction(line.firstResult())
def getStartPoint(line):
constraint = sketch.addFeature("SketchConstraintPerpendicular")
constraint.refattr("ConstraintEntityA").setObject(l1)
constraint.refattr("ConstraintEntityB").setObject(l2)
+
+def makeConstantLength(line, length, sketch):
+ constraint = sketch.addFeature("SketchConstraintLength")
+ constraint.refattr("ConstraintEntityA").setObject(line)
+ constraint.real("ConstraintValue").setValue(length)