I have written a VB6 program to read and plot dxf files.
However, I have a problem with interpreting the format for an ARC. For example:
An arc is given in a dxf file as having these properties:
X=3, Y=11, Radius=0.25, start angle = 83 degrees, end angle = 175 degrees.
$ANGBASE is set to 0.0, meaning 0 degrees is to the east or right.
$ANGDIR is set to 0, meaning drawing is counter-clockwise.
(These 2 items are set to match Microsoft's drawing convention.)
All this indicates that this arc should start at the top of the circle and draw down and to the left, i.e., in the upper-LEFT quadrant.
But when this file is run through AutoCAD it is drawn in the upper-RIGHT quadrant.
Another arc has startangle = -6, endangle = 89 which seems to me it should be in the upper-RIGHT quadrant, but AutoCad puts it in the upper-LEFT quadrant.
Can anyone explain where I am misinterpreting the specifications?
Or am I missing some other preset variable, similar to $ANGDIR?
However, I have a problem with interpreting the format for an ARC. For example:
An arc is given in a dxf file as having these properties:
X=3, Y=11, Radius=0.25, start angle = 83 degrees, end angle = 175 degrees.
$ANGBASE is set to 0.0, meaning 0 degrees is to the east or right.
$ANGDIR is set to 0, meaning drawing is counter-clockwise.
(These 2 items are set to match Microsoft's drawing convention.)
All this indicates that this arc should start at the top of the circle and draw down and to the left, i.e., in the upper-LEFT quadrant.
But when this file is run through AutoCAD it is drawn in the upper-RIGHT quadrant.
Another arc has startangle = -6, endangle = 89 which seems to me it should be in the upper-RIGHT quadrant, but AutoCad puts it in the upper-LEFT quadrant.
Can anyone explain where I am misinterpreting the specifications?
Or am I missing some other preset variable, similar to $ANGDIR?