Designing a Surfboard Fin

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!
woodbuddha
Posts: 35
Joined: Mon Jan 06, 2014 2:30 am

Re: Designing a Surfboard Fin

Postby woodbuddha » Mon Feb 03, 2014 7:40 am

Thanks Jim. I think you have the answer. Get the latest source.

FYI I have one dual boot machine with W7 and 64 12.04 LTS Ubuntu and another machine with 32 W7.

I'll build the latest version on Ubuntu I think.

Thanks again for all your help. And you too Mark. Appreciate your time.

TK
jmaustpc
Posts: 10374
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Designing a Surfboard Fin

Postby jmaustpc » Mon Feb 03, 2014 10:30 am

woodbuddha wrote:FYI I have one dual boot machine with W7 and 64 12.04 LTS Ubuntu and another machine with 32 W7.
Oh! now I see, you have 3 O/Ses, I thought I was just confused. :)
User avatar
quick61
Posts: 3803
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Designing a Surfboard Fin

Postby quick61 » Tue Feb 04, 2014 9:14 pm

Hi TK,

Just a quick update that you (and others) might find useful. I redid the Airfoil Import & Scale macro and now have 2 versions over on the Wiki. Unless at this time you have more or less up to the minuet FreeCAD / OCE, you will want version 1.5. There was a small bug in Draft that got exposed with version 2 of the script and was just corrected in FreeCAD version 0.14 3077.

To get the new script, go to the FreeCAD Wiki page Macros recipes and under Utility you will find the link for the Macro Airfoil Import & Scale page. Like i said, you will want the 1.5 version. I think you will find the result a bit more convenient than the old one.

Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
woodbuddha
Posts: 35
Joined: Mon Jan 06, 2014 2:30 am

Re: Designing a Surfboard Fin

Postby woodbuddha » Tue Feb 04, 2014 10:15 pm

Thanks Mark.

Updated FreeCAD.

OS: Ubuntu 12.04.4 LTS
Platform: 64-bit
Version: 0.14.3073 (Git)
Branch: master
Hash: 14410215416692475345a857081ba73e1dacce97
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

When I load the attached file and try to loft the b-splines I get the following error. Am I missing pyside module? If so what's the best way to get it installed?

TK

During initialization the error No module named PySide occurred in /usr/lib/freecad/Mod/Plot/InitGui.py
No module named PySide
Error: PySide not found, Draft workbench will be disabled.
Draft workbench activated
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 77, in <module>
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
File "/usr/lib/freecad/Mod/Draft/Draft_rc.py", line 10, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Draft workbench deactivated
Attachments
ellipticalfin5.FCStd
(42.25 KiB) Downloaded 37 times
jmaustpc
Posts: 10374
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Designing a Surfboard Fin

Postby jmaustpc » Tue Feb 04, 2014 11:05 pm

Hi TK
open your package manager and look for Pyside and install that. Ubuntu call it Python-Pyside, from memory you also need pyside-tools.



Jim
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Designing a Surfboard Fin

Postby NormandC » Tue Feb 04, 2014 11:08 pm

Sorry, I really do need to take care of this. :oops:

As Jim said, please install the python-pyside package. It is not currently in FreeCAD's dependencies, and it should be.

I thought pyside-tools was only needed when you compile? See, I need to check all this in a clean environment but haven't felt like it lately... :roll:
User avatar
quick61
Posts: 3803
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Designing a Surfboard Fin

Postby quick61 » Tue Feb 04, 2014 11:11 pm

The easiest way to get python-pyside is to open a console (terminal window) and type in or copy/paste.

Code: Select all

sudo apt-get install python-pyside
That should do it. ;) Doing it that way with just python-pyside calls the big meta package and it should install everything you need. So long as your not on some off branch of Ubuntu. Don't want to name names here, but it's initials begin with Mint.

Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
jmaustpc
Posts: 10374
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Designing a Surfboard Fin

Postby jmaustpc » Tue Feb 04, 2014 11:45 pm

normandc wrote: I thought pyside-tools was only needed when you compile?
Hi Norm
I think you are right, but someone had a problem not long back because they did not have this package, I think. But they were probably compiling FreeCAD.

this is the description from my package manager,
Qt is a cross-platform C++ application framework. Qt's primary feature is its rich set of widgets that provide standard GUI functionality.

PySide ships Python bindings for the Qt4 framework. This package ships the following accompanying tools:
• pyside-rcc - PySide resource compiler
• pyside-uic - Python User Interface Compiler for PySide
• pyside-lupdate - update Qt Linguist translation files for PySide

Canonical does not provide updates for pyside-tools. Some updates may be provided by the Ubuntu community.
Based on the above and the installed file list, it all looks like development stuff...so TK...I would not install this pyside-tools package if you are only going to use the PPA version and not compile yourself. If you have already installed it, I would just leave it there.
woodbuddha
Posts: 35
Joined: Mon Jan 06, 2014 2:30 am

Re: Designing a Surfboard Fin

Postby woodbuddha » Wed Feb 05, 2014 1:19 am

...and Bingo was his name.

:-)

All working like it should. See attached file. The 9" elliptical surfboard fin.

Thanks again everyone for your help. The FreeCAD community rocks!

TK
woodbuddha
Posts: 35
Joined: Mon Jan 06, 2014 2:30 am

Re: Designing a Surfboard Fin

Postby woodbuddha » Wed Feb 05, 2014 1:20 am

..and the file.
Attachments
40-80-225-elliptical-fin.fcstd
(131.93 KiB) Downloaded 70 times