Curves workbench

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!
Cropduster
Posts: 16
Joined: Mon Jun 21, 2021 7:22 pm

Re: Curves workbench

Post by Cropduster »

I have been trying to use interpolate in the Curves WB but it won't work for me: not even a simple set of points from a sketch.
I am using:

Code: Select all

OS: Ubuntu 20.04.5 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * Curves 0.6.1
  * Pyramids-and-Polyhedrons
I was following MangoJelly in the Curves Workbench 16: Boat / Ship building with Interpolate Curves Possible solution? video
Flachy Joe from the FreeCAD github group has suggested Curves Interpolate worked for him! So is this a dependancy issue with me or something in Python I haven't enabled?
Best regards,
BW
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Post by Vincent B »

What about to introduce the bezier curve as an option inside interpolated curve?
...
and arc 3 pts like the line feature?
Attachments
BezierCurve.FCStd
(12.4 KiB) Downloaded 23 times
kh9k
Posts: 2
Joined: Sun Nov 27, 2022 9:46 pm

Re: Curves workbench

Post by kh9k »

Dear community members, I try to use interpolate in the Curves WB and get the error:

00:53:13 Running the Python command 'Interpolate' failed:
Traceback (most recent call last):
File "/home/kh8k/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/interpolate.py", line 339, in Activated
source = self.parseSel(s)
File "/home/kh8k/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/interpolate.py", line 322, in parseSel
sen = obj.SubElementNames

'Sketcher.SketchObject' object has no attribute 'SubElementNames'

FreeCad version:

OS: Arch Linux (MATE)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods:
* Curves 0.6.1

I'm trying to draw the hull of a boat, being a very beginner CAD user. I have found a discussion on the topic with interpolation and surface creation usage. If you can recommend a better attitude, I will be very grateful.
Last edited by kh9k on Sun Nov 27, 2022 10:21 pm, edited 2 times in total.
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves workbench

Post by drmacro »

After many attempts, finally a result that passes geometry check. :D

(Though the flat tops aren't circular, as I've never been able to get a valid surface with a circle...)
Snip macro screenshot-05140f.png
Snip macro screenshot-05140f.png (56.05 KiB) Viewed 956 times
Attachments
FlattopCamel-3.FCStd
(77.59 KiB) Downloaded 25 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

Cropduster wrote: Sat Nov 26, 2022 4:03 pm I have been trying to use interpolate in the Curves WB but it won't work for me: not even a simple set of points from a sketch.
...
I was following MangoJelly in the Curves Workbench 16: Boat / Ship building with Interpolate Curves Possible solution? video
Flachy Joe from the FreeCAD github group has suggested Curves Interpolate worked for him! So is this a dependancy issue with me or something in Python I haven't enabled?
Best regards,
BW
Unfortunately, without more precise info, I am unable to tell.
Does the report view display any error ?[
Cropduster
Posts: 16
Joined: Mon Jun 21, 2021 7:22 pm

Re: Curves workbench

Post by Cropduster »

Ok, I'm not sure what detail you need, but attached is the file I was using to use the Curves Interpolate feature. Interestingly, the Approximate curve fit works on the attached file, but not Interpolate.
Cropduster
Posts: 16
Joined: Mon Jun 21, 2021 7:22 pm

Re: Curves workbench

Post by Cropduster »

Ok, I'm not sure what detail you need, but attached is the file I was using to use the Curves Interpolate feature. Interestingly, the Approximate curve fit works on the attached file, but not Interpolate.
To reiterate, this is the FreeCAD detail:

OS: Ubuntu 20.04.5 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
Installed mods:
* Curves 0.6.1
* Pyramids-and-Polyhedrons
Attachments
Test-Boat-1.FCStd
(5.17 KiB) Downloaded 22 times
Cropduster
Posts: 16
Joined: Mon Jun 21, 2021 7:22 pm

Re: Curves workbench

Post by Cropduster »

And the report view shows:

15:20:42 Running the Python command 'Interpolate' failed:
Traceback (most recent call last):
File "/home/brianw/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/interpolate.py", line 339, in Activated
source = self.parseSel(s)
File "/home/brianw/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/interpolate.py", line 322, in parseSel
sen = obj.SubElementNames

'Sketcher.SketchObject' object has no attribute 'SubElementNames'
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

@Cropduster, @kh9k
Please update CurvesWB, I have pushed a fix.
Cropduster
Posts: 16
Joined: Mon Jun 21, 2021 7:22 pm

Re: Curves workbench

Post by Cropduster »

Thanks Chris_G, operating the Interpolate feature on the same file still did not work, but I notice the error lines are different from previous. So, is this associated with some aspect of Ubuntu I haven't installed/updated?

18:44:20 Running the Python command 'Interpolate' failed:
Traceback (most recent call last):
File "/home/brianw/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/interpolate.py", line 342, in Activated
source = self.parseSel(s)
File "/home/brianw/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/interpolate.py", line 333, in parseSel
verts = obj.Object

'Sketcher.SketchObject' object has no attribute 'Object'
Post Reply