Export to DRAGON

Предыдущая страницаВ началоСледующая страница

For the example given below, we will describe the parameters that can be customized when a hatch profile is output to DRAGON format.

31Export1S

The drawing shown in the example has a profile consisting of two contours (a polyline that includes segments and two arcs, and circles).

In the example, the initial node of the profile is highlighted and the arrow shows the direction of traversing the profile.

When you select this format, the following file is created:

 

File Profile.drg:

START 205.740000 188.900000

LINE 224.180000 122.540000

LINE 79.630000 122.540000

LINE 79.630000 139.400000

ARC 96.490000 156.260000 96.490000 139.400000 -16.860000

LINE 139.540000 156.260000

LINE 139.540000 172.480000

ARC 155.960000 188.900000 155.960000 172.480000 -16.420000

LINE 205.740000 188.900000

END

PROFILE 2

START 195.470000 143.280000

ARC 195.470000 143.280000 182.490000 143.280000 12.980000

END

The profile-file consists of a sequence of lines. Each of the lines starts with a keyword and has a specific format. Keywords can be as follows:

PROFILE

START

LINE

ARC

END

Each new contour has a heading:

PROFILE N, where

N - the number of the contour in order.

For example:

PROFILE 1

...

...

...

PROFILE 2

...

Each contour starts with the keyword START and ends with the keyword END.

String formats:

START X1 Y1

END,

where

X1, Y1 - real coordinates of the starting point of the contour.

For example:

START 57.000 108.000

...

...

END

Between the keywords START and END there is a set of strings consisting of the keywords LINE and ARC (arc or circle).

String formats:

LINE X2 Y2,

where

X2, Y2 - real coordinates of the end point of the line.

ARC X2 Y2 XC YC R, where

X2, Y2 - real coordinates of the end point of the arc of the circle (for the circle - the coordinates of the point on the circle).

XC YC - real coordinates of the center of the circle.

R - radius of the circle. The radius of the circle is positive if the arc contour was traversed counterclockwise, and the radius of the circle is negative if clockwise.

For example:

LINE 97.000 108.000

ARC 117.000 88.000 97.000 88.000 -20

LINE 117.000 68.000

ARC 127.000 58.000 127.000 68.000 10