MitjaNemec / Kicad_action_plugins

Kicad action plugins
415 stars 62 forks source link

[scripting API question] Getting and setting text items? #131

Closed stormyweathers closed 3 years ago

stormyweathers commented 3 years ago

Hey there,

Thanks for your help last time, hope you have some insight to share again. In the graphical board editor, I can create additional text items for any footprint. However, I don't see a way to read or write these text items using the scripting API. Theres nothing like GetText/SetText, TextItemsList, etc...

Do you have any clues for this?

Thanks, Storm

MitjaNemec commented 3 years ago

You'll have to be more specific

  1. Which KiCad version are you on? 5.1.x. or 5.99?
  2. Does "graphical board editor" editor refer to footprint editor or pcbnew (board editor)? Just making sure, because you can not edit footprints directly in pcbnew (board editor).
  3. get_module_text_items shows how you can grab text items in 5.1.x