Skip to content

Commit

Permalink
Allow multiple keys for MPN assign
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickFranken committed Jan 7, 2022
1 parent 1edd2c6 commit defea7d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
14 changes: 10 additions & 4 deletions README.md
Expand Up @@ -15,14 +15,20 @@ Once the upload (which will only take a couple of seconds) is complete you can p

![](docs/demo.gif)

### Installation
Download the latest release ZIP file from https://github.com/AislerHQ/PushForKiCad/releases, within KiCad open the "Plugin and Content Manager" from the main window. Install the ZIP file using "Install from File..." a the bottom of the window.

### How do revisions work?
On the initial push of a new layout the plugin adds a comment to comment line 3 inclduing a reference to the corresponding AISLER Project ID.
![](docs/project_id.png)
Each further push will add the current layout to the project as a new revision. If this is not desired, just remove the comment and a new project will be created.

### How to automatically assign parts?
In order to speed up the development to production process we support the automated matching of parts. Just add a property named either "Mpn", "MPN", "mpn" or "AISLER_MPN" to your schematic sympbol properties and use the MPN of the part as value.
![](docs/mpn_assign.png)

### About AISLER
AISLER makes hardware less hard by providing simple electronics manufacturing for everyone. We are based in Europe and focus on amazingly affordable prices, super swift delivery and outstanding customer support. We are KiCad Platinum Sponsor as we donate a significant amount of our revenues made from KiCad designs back to the project.

### Manual installation
Download the latest release ZIP file from https://github.com/AislerHQ/PushForKiCad/releases, within KiCad open the "Plugin and Content Manager" from the main window. Install the ZIP file using "Install from File..." a the bottom of the window.

#### About AISLER
AISLER makes hardware less hard by providing simple electronics manufacturing for everyone. We are based in Europe and focus on amazingly affordable prices, super swift delivery and outstanding customer support. We are KiCad Platinum Sponsor as we donate a significant amount of our revenues made from KiCad designs back to the project.
![AISLER Logo](https://aisler.net/logos/logo_medium.png)
Binary file added docs/mpn_assign.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/push_thread.py
Expand Up @@ -114,7 +114,7 @@ def run(self):
'rotation': f.GetOrientation() / 10.0,
'side': layer,
'designator': f.GetReference(),
'mpn': f.GetProperty('mpn'),
'mpn': self.getMpnFromFootprint(f),
'pack': footprint_name,
'value': f.GetValue(),
'mount_type': mount_type
Expand Down Expand Up @@ -158,3 +158,9 @@ def run(self):

def report(self, status):
wx.PostEvent(self.wxObject, ResultEvent(status))

def getMpnFromFootprint(self, f):
keys = ['mpn', 'MPN', 'Mpn', 'AISLER_MPN']
for key in keys:
if f.HasProperty(key):
return f.GetProperty(key)

0 comments on commit defea7d

Please sign in to comment.