This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
geda:file_format_spec [2014/04/25 07:46] vzh Split example text off of the previous text |
geda:file_format_spec [2019/10/05 08:48] rlutz Update color specification |
||
---|---|---|---|
Line 577: | Line 577: | ||
|19|FREESTYLE3_COLOR| | |19|FREESTYLE3_COLOR| | ||
|20|FREESTYLE4_COLOR| | |20|FREESTYLE4_COLOR| | ||
+ | |||
+ | Some additional colors are used internally but not permitted as object colors: | ||
+ | |||
+ | ^Index^Object type^ | ||
|21|JUNCTION_COLOR| | |21|JUNCTION_COLOR| | ||
|22|MESH_GRID_MAJOR_COLOR| | |22|MESH_GRID_MAJOR_COLOR| | ||
|23|MESH_GRID_MINOR_COLOR| | |23|MESH_GRID_MINOR_COLOR| | ||
+ | |24|ORIGIN_COLOR| | ||
+ | |25|PLACE_ORIGIN_COLOR| | ||
The actual color associated with the color index is defined on a per tool bases. Objects are typically assigned their corresponding color index, but it is permissible (sometimes) to assign other color index values to different object types. | The actual color associated with the color index is defined on a per tool bases. Objects are typically assigned their corresponding color index, but it is permissible (sometimes) to assign other color index values to different object types. | ||
Line 585: | Line 591: | ||
===== Attributes ===== | ===== Attributes ===== | ||
Attributes are enclosed in braces {} and can only be text. Attributes are text items which take on the form name=value. If it doesn't have name=value, it's not an attribute. Attributes are attached to the previous object. Here's an example: | Attributes are enclosed in braces {} and can only be text. Attributes are text items which take on the form name=value. If it doesn't have name=value, it's not an attribute. Attributes are attached to the previous object. Here's an example: | ||
- | <code>P 988 500 1300 500 1 | + | <code> |
+ | P 300 700 0 700 1 0 1 | ||
{ | { | ||
- | T 1000 570 5 8 1 1 0 | + | T 200 750 5 8 1 1 0 6 1 |
- | pinseq=3 | + | pinnumber=1 |
- | T 1000 550 5 8 1 1 0 | + | T 200 650 5 8 0 1 0 8 1 |
- | pinnumber=3 | + | pinseq=1 |
- | }</code> | + | } |
+ | </code> | ||
The object is a pin which has an attribute pinnumber=3 and pinseq=3 (name=value). You can have multiple text objects (both the T ... and text string are required) in between the braces {}. As of 20021103, you can only attached text items as attributes. Attaching other object types as attributes is unsupported.\\ | The object is a pin which has an attribute pinnumber=3 and pinseq=3 (name=value). You can have multiple text objects (both the T ... and text string are required) in between the braces {}. As of 20021103, you can only attached text items as attributes. Attaching other object types as attributes is unsupported.\\ |