I have imported some geometry from Revit:
Arc(Normal = Vector(X = 0.000, Y = 0.000, Z = 1.000, Length = 1.000), CenterPoint = Point(X = 7857.358, Y = 2521.494, Z = 0.000), Radius = 150.000, StartAngle = 296.266, SweepAngle = 70.283)
Arc(Normal = Vector(X = 0.000, Y = 0.000, Z = 1.000, Length = 1.000), CenterPoint = Point(X = 7953.692, Y = 2842.128, Z = 0.000), Radius = 308.065, StartAngle = 279.848, SweepAngle = 35.833)
I want to recreate this exactly using Python:
Vec = Vector.ByCoordinates (0, 0, 1, True)
BodyPoints = [Point.ByCoordinates(7857.358, 2521.494, 0), Point.ByCoordinates(7953.692, 2842.128, 0) ]
Radii = [150, 308.065 ]
StartAngles = [296.266, 279.848 ]
SweepAngles = [70.283, 35.833 ]
Body = []
for index, Pt in enumerate(BodyPoints):
Body.append(Arc.ByCenterPointRadiusAngle(Pt, Radii[index], StartAngles[index], SweepAngles[index], Vec))
Now it’s drawing in the right place. But the length is wrong and I can’t work out how to alter it.
The blue is the import - the black is the extra Python length.