Shack
February 22, 2017, 3:17pm
213
perhaps we should consider moving the script talk over to
What about adding a simpler flag where each model assigned to a footprint can be enabled/disabled?
In this fashion we can pre-add all official models to a part, and it’s a simple task to enabled/disable a given model rather than having to add it manually to the footprint?
Rene_Poschl:
But now that i looked at my molex script i must say i like it more if the name is generated using a format string.This way one can’t make a mistake in one of the models. If one model has the correct name, all of them have. (You then only need to check the one with the lowest pin count and the one with the highest count.)
file_name=“Molex_PicoBlade_53261-”+ (‘%02d’ % num_pins) +“71_” + (‘%02d’ % num_pins) + “x” + (‘%.2f’ % pin_pitch) +“mm_Angled”,
Also just think how much information you need to enter for my phoenix scripts. There are more than 500 connectors generated.
this way does ofcourse make much better sense for the connector scripts
the other more “manual” way was mainly ment for the other packages with more changing parameters and names than pin numbers
1 Like