ATTR Attribute
Attributes are used to describe properties that the PCB or FOOTPRINT may need to display on the drawing.
json
{ "type": "ATTR", "id":"UUID", "ticket": 1 }||
{
"partitionId":null,
"groupId":0,
"locked":1,
"zIndex":0.072,
"parentId":"",
"layerId":1,
"positionX":200,
"positionY":150,
"key":"DESIGNATOR",
"value":"U1",
"keyVisible":0,
"valueVisible":1,
"fontFamily":"SimSun",
"fontSize":50,
"strokeWidth":10,
"bold":0,
"italic":0,
"origin":5,
"angle":15,
"reverse":1,
"reverseExpansion":0,
"mirror":1,
"width":100,
"height":200,
"path":["complex polygon"],
}|1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
- type attribute
ATTR. - id primitive ID, unique within the document.
- ticket logical clock.
- partitionId partition ID it belongs to, null means no partition. Ignored for footprints.
- groupId group ID: 0 no group, non-zero is the group flag, same flag means same group.
- locked whether locked.
- zIndex Z-axis height.
- parentId affiliation ID, left blank means current block-level primitive.
- layerId layer.
- positionX position X: fixed to
nullfor attributes that have never been displayed. - positionY position Y: fixed to
nullfor attributes that have never been displayed. - key Key.
- value Value.
- keyVisible whether to display Key.
- valueVisible whether to display Value.
- fontFamily font name.
- fontSize font size.
- strokeWidth stroke width.
- bold whether bold.
- italic whether italic.
- origin alignment mode:
0top-left,1top-center,2top-right,3middle-left,4middle-center,5middle-right,6bottom-left,7bottom-center,8bottom-right. - angle rotation angle.
- reverse whether reverse expansion.
- reverseExpansion reverse expansion size: size of the reverse expansion area, supports negative numbers.
- mirror whether mirrored. Generally, when text appears on the bottom layer, this should also be adjusted to
1. - width height,
nullif none. - height width,
nullif none. - path complex polygon array,
nullif none.