From a11979d6da4e5982858dadb0f623796500c9f1ef Mon Sep 17 00:00:00 2001 From: esophagoose <> Date: Thu, 24 Nov 2022 11:22:29 -0800 Subject: [PATCH 1/2] filled out harness records --- format.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/format.md b/format.md index b902d27..b90f8d2 100644 --- a/format.md +++ b/format.md @@ -458,7 +458,7 @@ That record is directly followed by multiple RECORD=16 entries which define the * `|OWNERINDEX=1234` ([integer]): Link to parent element. Value directly references zero-oriented implicit number of record in SchDoc file. Use dump.py to see these numbers. * `|TEXTCOLOR=128|TEXTFONTID=1|TEXTSTYLE=Full|INDEXINSHEET` * `|HARNESSTYPE` (ASCII): Name of the Harness type. Omitted if normal signal. -* `|SIDE` ([integer]): Optional. Indicates on which side of the sheet symbol the entry resides. 0 (or ommitted): Left, 1: Right, 2: Top, 3: Bottom. +* `|SIDE` ([integer]): Optional. Indicates on which side of the sheet symbol the entry resides. 0 (or omitted): Left, 1: Right, 2: Top, 3: Bottom. * `|STYLE` ([integer]): Usually 2 or 3. Corresponds to "Style" ListBox in "Sheet Entry" dialog. * `|IOTYPE` ([integer]): Optional. Indicates signal flow direction. 0 (or omitted): Undefined, 1: Output, 2: Input, 3: Bidirectional. @@ -763,9 +763,24 @@ Child of RECORD=45 ([Implementation](#implementation)) ### 215–218 ### Children of [Sheet](#sheet), seen in the Additional stream -`|RECORD=215`: Similar to [Sheet symbol](#sheet-symbol) +`|RECORD=215`: Harness breakout entry - Similar to [Sheet symbol](#sheet-symbol) +* `|INDEXINSHEET`: [Integer] +* `|OWNERPARTID=-1` +* `|LOCATION.X|LOCATION.Y`: Top left corner (not bottom left like + other objects!) +* `|XSIZE|YSIZE`: Positive [integers](#integers) of width and height +* `|LINEWIDTH`: Positive [integers](#integers) +* `|COLOR|AREACOLOR|UNIQUEID` +* `|PRIMARYCONNECTIONPOSITION`: Positive [integers](#integers) where the bus connection to the harness breakout is. Position is relative -`|RECORD=216` +`|RECORD=216`: Harness pin entry inside a harness breakout entry - Similar to [Sheet entry](#sheet-entry) +* `|AREACOLOR=8454143|COLOR=128` +* `|DISTANCEFROMTOP` ([integer]): Distance from top-left coordinate. If SIDE==0/1 Y-Coordinate, else X-Coordinate in x10 units. DISTANCEFROMTOP=10 ==> 100 in Altium. +* `|DISTANCEFROMTOP_FRAC1` ([integer]): Fractional distance from top-left coordinate. If SIDE==0/1 Y-Coordinate, else X-Coordinate in x0.00001 units. DISTANCEFROMTOP_FRAC1=500000 ==> 5 in Altium. +* `|NAME` (ASCII): Name of the harness pin entry. +* `|OWNERPARTID=-1|INDEXINSHEET|OWNERINDEXADDITIONALLIST=T` +* `|TEXTCOLOR=128|TEXTFONTID=1|TEXTSTYLE=Full|INDEXINSHEET` +* `|SIDE` ([integer]): Optional. Indicates on which side of the sheet symbol the entry resides. 0 (or omitted): Left, 1: Right, 2: Top, 3: Bottom. `|RECORD=217`: Similar to [Sheet name and file name]( #sheet-name-and-file-name), also with `|OWNERINDEXADDITIONALLIST=T` From 478b5026f0f069b2d2e39d329ddca3c32a809e02 Mon Sep 17 00:00:00 2001 From: esophagoose <> Date: Thu, 24 Nov 2022 11:33:39 -0800 Subject: [PATCH 2/2] cleaned up text --- format.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/format.md b/format.md index b90f8d2..b4b6c8f 100644 --- a/format.md +++ b/format.md @@ -763,23 +763,22 @@ Child of RECORD=45 ([Implementation](#implementation)) ### 215–218 ### Children of [Sheet](#sheet), seen in the Additional stream -`|RECORD=215`: Harness breakout entry - Similar to [Sheet symbol](#sheet-symbol) +`|RECORD=215`: Harness connector - Similar to [Sheet symbol](#sheet-symbol) * `|INDEXINSHEET`: [Integer] * `|OWNERPARTID=-1` * `|LOCATION.X|LOCATION.Y`: Top left corner (not bottom left like other objects!) * `|XSIZE|YSIZE`: Positive [integers](#integers) of width and height * `|LINEWIDTH`: Positive [integers](#integers) +* `|PRIMARYCONNECTIONPOSITION`: Positive [integers](#integers) where the signal harness connects to the harness connector. Position is relative from top-left coordinate * `|COLOR|AREACOLOR|UNIQUEID` -* `|PRIMARYCONNECTIONPOSITION`: Positive [integers](#integers) where the bus connection to the harness breakout is. Position is relative -`|RECORD=216`: Harness pin entry inside a harness breakout entry - Similar to [Sheet entry](#sheet-entry) -* `|AREACOLOR=8454143|COLOR=128` +`|RECORD=216`: Harness pin entry inside a harness connector - Similar to [Sheet entry](#sheet-entry) * `|DISTANCEFROMTOP` ([integer]): Distance from top-left coordinate. If SIDE==0/1 Y-Coordinate, else X-Coordinate in x10 units. DISTANCEFROMTOP=10 ==> 100 in Altium. * `|DISTANCEFROMTOP_FRAC1` ([integer]): Fractional distance from top-left coordinate. If SIDE==0/1 Y-Coordinate, else X-Coordinate in x0.00001 units. DISTANCEFROMTOP_FRAC1=500000 ==> 5 in Altium. * `|NAME` (ASCII): Name of the harness pin entry. -* `|OWNERPARTID=-1|INDEXINSHEET|OWNERINDEXADDITIONALLIST=T` -* `|TEXTCOLOR=128|TEXTFONTID=1|TEXTSTYLE=Full|INDEXINSHEET` +* `|OWNERPARTID=-1|INDEXINSHEET|OWNERINDEXADDITIONALLIST=T|AREACOLOR|COLOR` +* `|TEXTCOLOR=128|TEXTFONTID=1|TEXTSTYLE=Full` * `|SIDE` ([integer]): Optional. Indicates on which side of the sheet symbol the entry resides. 0 (or omitted): Left, 1: Right, 2: Top, 3: Bottom. `|RECORD=217`: Similar to [Sheet name and file name](