From a8eacbb4d82bda8bc36f9bd87a1216234cb4696b Mon Sep 17 00:00:00 2001 From: caseycrogers Date: Tue, 9 Jun 2015 21:14:03 -0700 Subject: [PATCH] Symmetry Bug Fixed --- Dogbone.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dogbone.py b/Dogbone.py index 8ab28e6..79c4d7f 100644 --- a/Dogbone.py +++ b/Dogbone.py @@ -257,7 +257,9 @@ def createDogbone(circStr, circVal, edge): if not pointTuple: adsk.core.Application.get().userInterface.messageBox('non-adjacent edges') return - line0 = lines.addByTwoPoints(pointTuple[0], pointTuple[1].geometry) + tempPoint = adsk.core.Point3D.create((pointTuple[1].geometry.x + pointTuple[2].geometry.x)/2, + (pointTuple[1].geometry.y + pointTuple[2].geometry.y)/2, 0) + line0 = lines.addByTwoPoints(pointTuple[0], tempPoint) line0.isConstruction = True line1.isConstruction = True line2.isConstruction = True