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!
User avatar
Chris_G
Posts: 1638
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Mon Dec 28, 2020 2:23 pm

Before recent changes, Construction was a property of all Part geometry objects.
This is no longer true, so some python scripts might now raise an AttributeError :

Code: Select all

<class 'AttributeError'>: 'Part. ...' object has no attribute 'Construction'
There is no general recipe to fix this, but if the line that triggers the AttributeError, look like :

Code: Select all

if a_sketch.Geometry[i].Construction:
    ...
it can be replaced by :

Code: Select all

try:
    construction = a_sketch.Geometry[i].Construction
except AttributeError:
    construction = a_sketch.getConstruction(i)
if construction:
    ...
User avatar
GlouGlou
Posts: 2832
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Sat Jan 09, 2021 8:57 am

I've got a bug this morning with interpolated curve. :?
Attachments
interpolated_bug.FCStd
(9.45 KiB) Downloaded 15 times
User avatar
hammax
Posts: 1279
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee

Re: Curves workbench

Postby hammax » Sat Jan 09, 2021 10:40 am

... the bug must be in the derived points.
Using directly the corners of the cube, there is no problem.

No_interp_bug.PNG
No_interp_bug.PNG (10.26 KiB) Viewed 504 times
Attachments
No_interpolated_bug_2.FCStd
FC.18.4
(8.08 KiB) Downloaded 8 times
User avatar
Chris_G
Posts: 1638
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Postby Chris_G » Sat Jan 09, 2021 5:09 pm

GlouGlou wrote:
Sat Jan 09, 2021 8:57 am
I've got a bug this morning with interpolated curve. :?
Thanks. It should be fixed now.
Denisvp
Posts: 8
Joined: Mon Aug 17, 2020 1:27 pm

Re: Curves workbench

Postby Denisvp » Thu Feb 04, 2021 9:54 am

Dear friends, please tell me how to connect a curve on a plane with two other curves. I want to build a surface using the tool "Sweep profiles on 2 rails". I want to draw several sections. I opened examples of files here, but I didn't understand how to do it.
Attachments
plane.jpg
plane.jpg (192.99 KiB) Viewed 386 times
clp.jpg
clp.jpg (541.51 KiB) Viewed 386 times
User avatar
Kunda1
Posts: 9744
Joined: Thu Jan 05, 2017 9:03 pm

Re: Curves workbench

Postby Kunda1 » Thu Feb 04, 2021 10:22 am

Is there one? I don't see the sweep profile on 2 rails in the Curves_Workbench.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Denisvp
Posts: 8
Joined: Mon Aug 17, 2020 1:27 pm

Re: Curves workbench

Postby Denisvp » Thu Feb 04, 2021 10:49 am

I have two sections. initial and final, I need to insert another section in the middle where the plane passes. I do not know how to connect a curve, or rather I do not know how to get the point of intersection of curves with a plane.
Attachments
new.jpg
new.jpg (781.41 KiB) Viewed 365 times
middleSection.FCStd
(72.54 KiB) Downloaded 13 times
User avatar
hammax
Posts: 1279
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee

Re: Curves workbench

Postby hammax » Thu Feb 04, 2021 4:04 pm

... you even can position the curves endpoints by eye, in Sketcher "Section"
when increasing the 3D-tolerance in Gordon surface.

middleSection.PNG
middleSection.PNG (70.2 KiB) Viewed 328 times
Attachments
middleSection_2.FCStd
FC.18.1
(41.7 KiB) Downloaded 15 times
User avatar
saso
Posts: 1637
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Curves workbench

Postby saso » Thu Feb 04, 2021 5:34 pm

Denisvp wrote:
Thu Feb 04, 2021 10:49 am
I have two sections...
I am not sure if I understand what exactly you are trying to do, are you looking for something like this https://forum.freecadweb.org/viewtopic. ... 10#p387863 ?
User avatar
GlouGlou
Posts: 2832
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Postby GlouGlou » Thu Feb 04, 2021 6:05 pm

or using datum points. ;)
Attachments
middleSection_3.FCStd
(23.33 KiB) Downloaded 14 times