boxcreator on Freecad 0.18

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: boxcreator on Freecad 0.18

Post by jmaustpc »

chrisb wrote: Sun Jun 30, 2019 12:53 pm
Syres wrote: Sun Jun 30, 2019 10:53 amI believe the reason for new users (or those of us who never had the macro) not seeing macros such as this one is that they must have an entry in the Wiki
There must be another reason, because I do see it in the Addonmanager's list.
Its not there in my list, I have not ever had any add ons of any sort installed on this computer.

OS: Ubuntu 18.04.2 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)


its also not there in the release PAA version

OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: boxcreator on Freecad 0.18

Post by jmaustpc »

harlekin wrote: Sat Jun 29, 2019 3:41 pm I apologize for having made a mistake in writing the previus post.
I Use Freecad0.18 ver. 16117. I downloaded from Gitub the very interesting macro BOXCREATOR. But it does not function.
Please post you version data in the manner explained in the help forum rules, link is at the top when you are in the Help forum.

If you had we would see what Python version you are using etc.

You could have issues running Py2 code on Py3 or Py3 code on Py2.
kisolre
Veteran
Posts: 4159
Joined: Wed Nov 21, 2018 1:13 pm

Re: boxcreator on Freecad 0.18

Post by kisolre »

I just tried and with cleaned(renamed) FreeCAD settings folder I still get the macro in the list:
BoxCreator_clean settings folder.JPG
BoxCreator_clean settings folder.JPG (67.99 KiB) Viewed 1362 times
.
But after installation It does not work:

Code: Select all

Traceback (most recent call last):
  File "C:/Users/Wivern/AppData/Roaming/FreeCAD/Macro/BoxCreator.FCMacro", line 28, in <module>
    from boxcreator import boxcreator
<class 'ModuleNotFoundError'>: No module named 'boxcreator'

Code: Select all

OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16117 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: dbb4cc6415bac848a294f03b80f65e888d531742
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)
Then I swap settings folders - macro works. Uninstall macro, clean all traces (cached .pyd files), restart freecad - no macro present. Install again - it works. Exit FreeCAD. Swap settings folder. Clean all traces of insatlled macro. Start freeCAD. Install macro. It runs - darn :(
Exit FreeCAD. Remove settings folder. Start FreeCAD. Install macro. Run macro - same error. Boxcreator subfolder is present with proper content. Exit FreeCAD. Start FreeCAD. Run macro - runs Ok, no errors.
Conclusion - FreeCAD does not see modules in subfolders if they are not present at start. Same as with Addons if macro has subfolders FreeCAD needs restart.
UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

Re: boxcreator on Freecad 0.18

Post by UR_ »

If I try to install macro "BoxCreator" by addon manager (it's listed under tab macros), I got this error message:


Traceback (most recent call last):
File "C:\Users\aio\Miniconda3\envs\freecad\Library\Mod\AddonManager\AddonManager.py", line 405, in install
if install_macro(macro, self.macro_repo_dir):
File "C:\Users\aio\Miniconda3\envs\freecad\Library\Mod\AddonManager\addonmanager_utilities.py", line 176, in install_macro
shutil.copy(src_file, dst_file)
NameError: name 'shutil' is not defined



- BoxCreator.FCMacro is copied to macro folder
- subfolder boxcreator is made, but empty


version:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17175 (Git)
Build type: Release
Branch: master
Hash: 507c40669d48ae4732268324cd0140c80cf68222
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)


Edit:
yorik wrote: *ping*
i had to add to ...\Mod\AddonManager\addonmanager_utilities.py, line 27

Code: Select all

import shutil
to make install of macro working
Last edited by UR_ on Sun Jun 30, 2019 5:44 pm, edited 1 time in total.
harlekin
Posts: 19
Joined: Wed May 13, 2015 8:52 pm

Re: boxcreator on Freecad 0.18

Post by harlekin »

At the end it works. Thanks to alla and particularly to Syres whose informations gave me the solution. Problem solved.
harlekin
Posts: 19
Joined: Wed May 13, 2015 8:52 pm

Re: boxcreator on Freecad 0.18

Post by harlekin »

At the end it works. Many thanks to all and particularly to Syres whose informations gave me the solution.
Problem solved
harlekin
Posts: 19
Joined: Wed May 13, 2015 8:52 pm

Re: boxcreator on Freecad 0.18

Post by harlekin »

At the end the it works! Thanks to all and particularly to Syres whose informazione gave me the solution. Problem solved.
kisolre
Veteran
Posts: 4159
Joined: Wed Nov 21, 2018 1:13 pm

Re: boxcreator on Freecad 0.18

Post by kisolre »

Nice to know all is Ok :)
You can edit your posts, no need to tripple post :)
PostEdit.JPG
PostEdit.JPG (25.19 KiB) Viewed 1339 times
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: boxcreator on Freecad 0.18

Post by jmaustpc »

Still does not show here....
Screenshot_20190701_101831.png
Screenshot_20190701_101831.png (50.76 KiB) Viewed 1317 times


OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)


harlekin wrote: Sun Jun 30, 2019 3:21 pm At the end the it works!
that is great that it works for you, please now post your version data from the "FreeCAD Help menu...About FreeCAD, copy to clipboard" as I previously asked, so that you can help other people since obviously there is still something not correct somewhere.
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: boxcreator on Freecad 0.18

Post by TheMarkster »

That's a neat macro. Only one problem -- those box joints are going to be mighty tight come assembly time. Of course, if you print with ABS and use acetone it will probably still be able to go together as the acetone dissolves some of the material.
Post Reply