Macro not executing
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Macro not executing
New to FreeCAD and trying to get a macro working. It appears as start_bolts.FCMacro in Execute macro but after pressing execute nothing happens. Any ideas? Do I need to install something else additionally?
Re: Macro not executing
Welcome to the forum. We can't help you without knowing more about your setup and steps to reproduce. Please familiarize yourself with the forum guidelines. You'll get a higher probability of informative response(s) if you make the effort to help us help you
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Macro not executing
Also turn on Report view and change the settings to send Python and error messages to report view, then you can post any error messages.
Re: Macro not executing
Yes thanks, I've dabbled in gimp but finding FreeCAD easier to get my head around. Already printed off my first few custom parts.Kunda1 wrote: ↑Tue May 14, 2019 3:32 pm Welcome to the forum. We can't help you without knowing more about your setup and steps to reproduce. Please familiarize yourself with the forum guidelines. You'll get a higher probability of informative response(s) if you make the effort to help us help you
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
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)
Attached two versions of the macro, neither do anything after pressing execute, zip because there are folders as well as macro files.
Thanks for that, this is what report view is saying.
File "C:/Users/xxxxxxxx/Downloads/Printing/FreeCAD/BOLTSFC-bc582ca724773ffe5cbd9f1b7e01df482e011e88\BOLTS\__init__.py", line 21, in <module>
import bolttools.blt
<class 'ModuleNotFoundError'>: No module named 'bolttools'
- Attachments
-
- BOLTSFC-d1c6fa2d99a2120ccbe756df712c4c1059b9c1b0.zip
- (185.39 KiB) Downloaded 89 times
-
- BOLTSFC-bc582ca724773ffe5cbd9f1b7e01df482e011e88.zip
- (185.29 KiB) Downloaded 86 times
Re: Macro not executing
How did you install the BOLTSFC macro? You should use the Addon Manager for this.
Also, I remember this external workbench had some issues working with Python 3, but I think the current maintainer solved this problem. It may still have some errors though.
Last edited by vocx on Wed May 15, 2019 9:27 pm, edited 1 time in total.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: Macro not executing
Found on google https://forum.freecadweb.org/viewtopic.php?t=36186 searching for freecad Missing parentheses in call to 'exec' which is the error I got after trying the addon manager which btw didn't seem to work yesterday when I tried it, got stuck on the download page. Works with python 2 apparently but idk how to revert.
import BOLTS
File "C:\Users\xxx\AppData\Roaming\FreeCAD\Mod\BOLTSFC\BOLTS\__init__.py", line 40, in <module>
from .gui import freecad_bolts as boltsgui
File "C:\Users\xxx\AppData\Roaming\FreeCAD\Mod\BOLTSFC\BOLTS\gui\freecad_bolts.py", line 29, in <module>
Ui_BoltsWidget,QBoltsWidget = uic.loadUiType(join(bolts_path,'bolts_widget.ui'))
<class 'SyntaxError'>: Missing parentheses in call to 'exec' (<string>, line 15)
import BOLTS
File "C:\Users\xxx\AppData\Roaming\FreeCAD\Mod\BOLTSFC\BOLTS\__init__.py", line 40, in <module>
from .gui import freecad_bolts as boltsgui
File "C:\Users\xxx\AppData\Roaming\FreeCAD\Mod\BOLTSFC\BOLTS\gui\freecad_bolts.py", line 29, in <module>
Ui_BoltsWidget,QBoltsWidget = uic.loadUiType(join(bolts_path,'bolts_widget.ui'))
<class 'SyntaxError'>: Missing parentheses in call to 'exec' (<string>, line 15)
Re: Macro not executing
Please see this thread for reference: https://forum.freecadweb.org/viewtopic. ... 86#p306308
You posted you are using Version: 0.18.16110 (Git)
Perhaps you are willing to test a daily build. I think this bug is gone.
You posted you are using Version: 0.18.16110 (Git)
Perhaps you are willing to test a daily build. I think this bug is gone.
Re: Macro not executing
you need latest 0.19 or latest 0.18.2 to get BOLTS on Python3, or use Python2 builds.
Re: Macro not executing
0.19 dev for windows to download is at 0.19.16687 The bugfix for BOLTS on Python 3 is 0.19.16695, means you need to wait until a new 0.19 dev build is uploaded to get it working on Windows.
bernd
bernd
Re: Macro not executing
Great, got it to work with 18.1 32bit however the bolts don't have a screw, just a plain rod. Can make nuts with Blender in the mean time.