Skip to content

Support manipulating hierarchical labels#4

Open
heyitscassio wants to merge 1 commit intopsychogenic:mainfrom
heyitscassio:main
Open

Support manipulating hierarchical labels#4
heyitscassio wants to merge 1 commit intopsychogenic:mainfrom
heyitscassio:main

Conversation

@heyitscassio
Copy link

Tested using

from skip import Schematic

sch = Schematic('schematic.kicad_sch')

for glabel in sch.global_label:
    hlabel = sch.hierarchical_label.new()
    hlabel.value = glabel.value
    hlabel.move(glabel.at[0], glabel.at[1], glabel.at[2])
    hlabel.effects.justify.value = glabel.effects.justify.value
    glabel.delete()

sch.write('/tmp/schematic.kicad_sch')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant