Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Add: Support for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-iteng committed Sep 23, 2024
1 parent 735405b commit 50a922f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/faebryk/libs/kicad/fileformats.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,13 @@ class C_segment:
class C_arc_segment(C_segment):
mid: C_xy

@dataclass(kw_only=True)
class C_group:
name: Optional[str] = field(**sexp_field(positional=True), default=None)
uuid: UUID
locked: Optional[bool] = None
members: list[UUID]

version: int = field(**sexp_field(assert_value=20240108))
generator: str
generator_version: str
Expand Down Expand Up @@ -1146,6 +1153,9 @@ class C_arc_segment(C_segment):
gr_texts: list[C_text] = field(
**sexp_field(multidict=True), default_factory=list
)
groups: list[C_group] = field(
**sexp_field(multidict=True), default_factory=list
)

kicad_pcb: C_kicad_pcb

Expand Down

0 comments on commit 50a922f

Please sign in to comment.