home *** CD-ROM | disk | FTP | other *** search
/ Global Amiga Experience / globalamigaexperience.iso / graphic / cad / xcad3000 / xcdoc / drawarc < prev    next >
Text File  |  1995-07-10  |  4KB  |  125 lines

  1.  
  2.    5.4.2 DRAW ARC
  3.  
  4.  
  5. The DRAW ARC command is used to draw one or more arc segments.
  6.  
  7.  
  8.    COMMAND FORMAT
  9.  
  10.       #DRAW ARC [modifiers] :Loc x1 ... xn [:Loc x1 ... xn]    etc.
  11.  
  12. If the command is used with no modifiers, 3 locations are entered. An arc
  13. segment is created that passes through all 3 points. ( See fig. 5.24 ).
  14.  
  15.  
  16.    MODIFIERS
  17.  
  18. LAYER          Requires a layer number. This will override the current
  19.                active layer.
  20.  
  21. DEPTH          Requires a depth number. This will override the current
  22.                active depth.
  23.  
  24. HARDFONT       Indicates a hardware line style will be entered.
  25.  
  26. .STYLE         One of the predefined line-styles, a value between 0 and 15.
  27.  
  28. .THICKNESS     Line thickness, a value between 1 and 5.
  29.  
  30. SOFTFONT       Indicates a software line style will be entered. For a full
  31.                description of the SOFTFONT option, see the documentation
  32.                for the command DEFINE SOFTFONT.
  33.  
  34. PARALLEL       Format:
  35.  
  36.                   #DRAW ARC PARALLEL [value] :Ent x1 :Loc x2 :Ent ...
  37.  
  38.                Will draw an arc segment parallel to an existing arc. 'x1'
  39.                identifies the existing arc.
  40.  
  41.                'x2' defines which side of the existing arc the new arc will
  42.                lie on. If a value is entered after PARALLEL, the radius of
  43.                the new arc will be the radius of the existing arc plus or
  44.                minus the value, depending on which side of the existing arc
  45.                location 'x2' was made. If no value was entered, the new
  46.                arc will pass through the point 'x2'. ( See fig. 5.25 ).
  47.  
  48.                Using the PARALLEL modifier excludes the following modifiers
  49.                which can be used to directly specify the arc parameters.
  50.  
  51. RADIUS         This modifier can be followed by a real value or no value.
  52.                If followed by a value, the value defines the arc radius.
  53.                If no value is entered, then the radius is defined implicitly
  54.                as a digitise. ( See fig. 5.26 and 5.27 ).
  55.  
  56. STARTANG       This modifier is followed by a real value which defines the
  57.                arc start angle in degrees. ( See fig. 5.28 ).
  58.  
  59. ENDANG         This modifier is followed by a real value which defines the
  60.                arc end angle in degrees.
  61.  
  62. The modifiers RADIUS, STARTANG and ENDANG can be used in any combination
  63. with or without values. When implicitly defining a parameter, the follow-
  64. ing rules are consistent:
  65.  
  66. ...Radius         Distance from digitise to arc centre.
  67. ...Start Angle    Angle between arc centre and start angle digitise.
  68. ...End Angle      Angle between arc centre and end angle digitise.
  69.  
  70.                   The arc is always drawn anti-clockwise from the start
  71.                   angle to the end angle.
  72.  
  73.  
  74. The following paragraphs describe the command format for each combination
  75. of modifiers:
  76.  
  77.  
  78.    #DRAW ARC RADIUS :Loc x1 x2 x3 x4 :Loc ...
  79.  
  80.       x1    Arc centre.
  81.       x2    Arc radius.
  82.       x3    Arc start angle.
  83.       x4    Arc end angle.
  84.  
  85.    #DRAW ARC RADIUS value :Loc x1 x2 x3 :Loc ...
  86.  
  87.       x1    Arc centre.
  88.       x2    Arc start angle.
  89.       x3    Arc end angle.
  90.  
  91.    #DRAW ARC RADIUS STARTANG value :Loc x1 x2 x3 :Loc ...
  92.  
  93.       x1    Arc centre.
  94.       x2    Arc radius.
  95.       x3    Arc end angle. ( See fig. 5.29 ).
  96.  
  97.    #DRAW ARC RADIUS value STARTANG value :Loc x1 x2 :Loc ...
  98.  
  99.       x1    Arc centre.
  100.       x2    Arc end angle.
  101.  
  102.    #DRAW ARC RADIUS ENDANG value :Loc x1 x2 x3 :Loc ...
  103.  
  104.       x1    Arc centre.
  105.       x2    Arc radius.
  106.       x3    Arc start angle.
  107.  
  108.    #DRAW ARC RADIUS value ENDANG value :Loc x1 x2 :Loc ...
  109.  
  110.       x1    Arc centre.
  111.       x2    Arc start angle.
  112.  
  113.    #DRAW ARC RADIUS STARTANG value ENDANG value :Loc x1 x2 :Loc ...
  114.  
  115.       x1    Arc centre.
  116.       x2    Arc radius.
  117.  
  118.    #DRAW ARC RADIUS value STARTANG value ENDANG value :Loc x1 :Loc ...
  119.  
  120.       x1    Arc centre.
  121.  
  122. ATTRIBUTE      Used to enter one or more attributes associated with this
  123.                entity. For a full description of the ATTRIBUTE option, see
  124.                the documentation for the command ADD ATTRIBUTE.
  125.