galou_breizh wrote: ↑Fri Jan 25, 2019 9:45 pm
Thanks both for reporting!
A couple of concerns were raised today after this post
https://forum.freecadweb.org/viewtopic.php?f=3&t=34876 . At first I thought the OP had just not downloaded the up-to-date macro through the AddOnManager but on checking that myself I realised the macro downloaded is different to the one on github
https://github.com/FreeCAD/FreeCAD-macr ... le.FCMacro so I'm assuming that there's something in the Wiki that needs tweaking to point at the up-to-date one??
So I knocked together a macro for the OP who had mentioned a couple of different OS and builds being used which leads onto the next thing, does the 2.1.1 version work on your Py3Qt5 build because I still get an error using:
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16079 (Git)
Build type: Release
Branch: master
Hash: 6363c90a20b296ab69d7b52230009928199d90df
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
Code: Select all
Traceback (most recent call last):
File "E:/Data/FreeCAD/Macro/Airfoil_quick61.FCMacro", line 38, in <module>
QtGui.qApp.activeWindow(), 'Open An Airfoil File', '*.dat')
<class 'AttributeError'>: 'NoneType' object has no attribute 'activeWindow'
Hence the reason I had to make the 'hack' for the OP to try two different methods for opening the DAT file.