Hi Maurice, It is not related to the .kicad_mod file. Failed with with many I tried. The Macro did not load the 'name' variable from the opendialog window. It came back empty and thus the next if statement gave false result:
if len(name) > 0: txtFile = open(name,"r") content = txtFile.readlines() content.append(" ") last_file_path=os.path.dirname(txtFile.name) txtFile.close() On Mon, Dec 14, 2015 at 2:33 PM easyw <ea...@katamail.com> wrote: > Hi Jose, > > if you post the .kicad_mod file I will check it > (better if zipped) > > PS which is the version of kicad StepUp tools you are using? > > Maurice > > On 14/12/2015 16.43, Jose A. Saumell wrote: > > Hi, > > > > I've ran into an issue whenever I had to use the StepUp tools on Freecad > > to open a footprint and do the alignment of 3D model. > > > > I would get an open file dialog but nothing would happen after selecting > > the .kicad_mod file. > > > > Inside kicad-StepUp-tools.FCMacro: > > The name[0] variable would return an empty value. > > > > I worked around the problem by not using native OSX Open file dialog: > > // > > > > name=QtGui.QFileDialog.getOpenFileName(self, 'Open file', > > last_file_path,"kicad module files (*.kicad_mod)", > > options=QtGui.QFileDialog.DontUseNativeDialog )[0] > > > > // > > > > This is working for me now, not sure exactly why it is not working with > > native OSX dialog. > > > > > > Cheers, Jose > > > > > > > > > > > > > > _______________________________________________ > > Mailing list: https://launchpad.net/~kicad-developers > > Post to : kicad-developers@lists.launchpad.net > > Unsubscribe : https://launchpad.net/~kicad-developers > > More help : https://help.launchpad.net/ListHelp > > >
_______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp