Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Anonymous
989 Vistas, 6 Respuestas

Script generating arcs at imprecise coordinates

I'm running a script that generates a series of arcs.  For the sake of this example, they're 90 degree arcs.  The arcs should all begin at the same y-coordinate and end at the same x-coordinate (aligned at both ends), with slightly different radii to each.  Instead, the ends of the arcs are just slight out of position, even though the script has all endpoints at the same x value (colored blue in the code sample below).  Disabling snap made no difference.

 

In the example script below, the arcs are being defined by their (1) center point, (2) start point, (3) end point.  The shift is illustrated in the following screenshots.  For a larger number of arcs, the x-offset dithers back and forth around the target point (it's not always trending off in the same direction).

 

Thanks in advance for the help, and apologies if I missed where this question was answered previously.  I looked but didn't see anything addressing this issue specifically.


Screen Shot 2019-03-28 at 5.37.33 PM.pngScreen Shot 2019-03-28 at 5.39.05 PM.pngScreen Shot 2019-03-28 at 5.39.14 PM.png

 

zoom -1.000001,-1.000001
-1.000000,-1.000000
arc c 805.000000,0.000000
145.000000,0.000000
785.000000,-640.000000
arc c 865.000000,0.000000
125.000000,0.000000
785.000000,-700.000000
arc c 925.000000,0.000000
105.000000,0.000000
785.000000,-760.000000
arc c 985.000000,0.000000
85.000000,0.000000
785.000000,-820.000000
arc c 1045.000000,0.000000
65.000000,0.000000
785.000000,-880.000000
arc c 1105.000000,0.000000
45.000000,0.000000
785.000000,-940.000000
arc c 1165.000000,0.000000
25.000000,0.000000
785.000000,-1000.000000
arc c 1225.000000,0.000000
5.000000,0.000000
785.000000,-1060.000000
zoom E