Hi there,
I’m at the task to get a plugin, that was built for KiCad6, to run in KiCad8.
The basic functionionality is iterating through a list of all footprints on the board and then checking for matches in some footprint attributes.
Executing the plugin throws this Attribute Error:
‘FOOTPRINT’ object has no attribute “GetProperties”
In the script there is a list generated with
for fp in self.board.GetFootprints():
and these “fp”-entries are separately read out with
mount = fp.GetTypeName()
if mount in ["SMD", "THT"]:
if not "Mount" in fp.GetProperties():
And this last line generates the error.
In the Doxygen documentation I only get to this point but there is no explanation of how this list looks and a link to the details of the member list for “footprint”.
I updated these for v8 (i.e. I updated them to make sure they worked correctly in 8.0.0) but I have limited experience with scripting KiCad so I can’t really speak to whether they’re the best way to do things or not.