Next: circle, Previous: picture, Up: Object types [Contents][Index]

#### 12.4.4 box

Valid in: Schematic and Symbol files

    type x y width height color width capstyle dashstyle dashlength dashspace filltype fillwidth angle1 pitch1 angle2 pitch2

Pos. | Field | Type/unit | Description
--- | --- | --- | ---
# | type | char | B
1 | x | int/mils | Lower left hand X coordinate
2 | y | int/mils | Lower left hand Y coordinate
3 | width | int/mils | Width of the box (x direction)
4 | height | int/mils | Height of the box (y direction)
5 | color | int | Color index
6 | width | int/mils | Width of lines
7 | capstyle | int/mils | Line cap style
8 | dashstyle | int | Type of dash style
9 | dashlength | int/mils | Length of dash
10 | dashspace | int/mils | Space inbetween dashes
11 | filltype | int | Type of fill
12 | fillwidth | int/mils | Width of the fill lines
13 | angle1 | int/degrees | First angle of fill
14 | pitch1 | int/mils | First pitch/spacing of fill
15 | angle2 | int/degrees | Second angle of fill
16 | pitch2 | int/mils | Second pitch/spacing of fill

- The capstyle is an enumerated type:
  - END NONE = 0
  - END SQUARE = 1
  - END ROUND = 2
- The dashstyle is an enumerated type:
  - TYPE SOLID = 0
  - TYPE DOTTED = 1
  - TYPE DASHED = 2
  - TYPE CENTER = 3
  - TYPE PHANTOM = 4
- The dashlength parameter is not used for TYPE SOLID and TYPE DOTTED. This parameter should take on a value of -1 in these cases.
- The dashspace parameter is not used for TYPE SOLID. This parameter should take on a value of -1 in these case.
- The filltype parameter is an enumerated type:
  - FILLING HOLLOW = 0
  - FILLING FILL = 1
  - FILLING MESH = 2
  - FILLING HATCH = 3
  - FILLING VOID = 4 unused
- If the filltype is 0 (FILLING HOLLOW), then all the fill parameters should take on a value of -1.
- The fill type FILLING FILL is a solid color fill.
- The two pairs of pitch and spacing control the fill or hatch if the fill type is FILLING MESH.
- Only the first pair of pitch and spacing are used if the fill type is FILLING HATCH.

Example:

    B 33000 67300 2000 2000 3 60 0 2 75 50 0 -1 -1 -1 -1 -1

A box with the lower left hand corner at (33000, 67300) and a width and height of (2000, 2000), color index 3, line width of 60 mils, no cap, dashed line type, dash length of 75 mils, dash spacing of 50 mils, no fill, rest parameters unset.

Next: circle, Previous: picture, Up: Object types [Contents][Index]