trouble running PartsLibrary.FCMacro

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
m0s1n
Posts: 17
Joined: Mon May 12, 2014 7:56 pm
Contact:

trouble running PartsLibrary.FCMacro

Post by m0s1n »

when trying to execute the macro, i get this error.

Code: Select all

Traceback (most recent call last):
  File "/home/m0s1n/.FreeCAD/PartsLibrary.FCMacro", line 104, in <module>
    m = FreeCADGui.getMainWindow()
<type 'exceptions.AttributeError'>: 'module' object has no attribute 'getMainWindow'
any ideas how to solve this?

OS: Ubuntu 12.04.4 LTS
Platform: 64-bit
Version: 0.13.1830 (Git)
Branch: releases/FreeCAD-0-13
Hash: ec7636d7aaf2612e9b43cff5d6a424037d53e505
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.0
User avatar
yorik
Founder
Posts: 13660
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: trouble running PartsLibrary.FCMacro

Post by yorik »

Your version of FreeCAD is too old. The FreeCADGui.getMainWindow() function has only been implemented in 0.14
m0s1n
Posts: 17
Joined: Mon May 12, 2014 7:56 pm
Contact:

Re: trouble running PartsLibrary.FCMacro

Post by m0s1n »

I figured out how to get the latest version and the parts library is working correctly now. thank you
Post Reply