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
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

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
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Post by Vincent B »

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

Re: Curves workbench

Post by hammax »

... 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 1391 times
Attachments
No_interpolated_bug_2.FCStd
FC.18.4
(8.08 KiB) Downloaded 68 times
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 »

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

Post by Denisvp »

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 1273 times
clp.jpg
clp.jpg (541.51 KiB) Viewed 1273 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Curves workbench

Post by Kunda1 »

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:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Denisvp
Posts: 8
Joined: Mon Aug 17, 2020 1:27 pm

Re: Curves workbench

Post by Denisvp »

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 1252 times
middleSection.FCStd
(72.54 KiB) Downloaded 93 times
User avatar
hammax
Veteran
Posts: 1985
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee DE

Re: Curves workbench

Post by hammax »

... 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 1215 times
Attachments
middleSection_2.FCStd
FC.18.1
(41.7 KiB) Downloaded 63 times
User avatar
saso
Veteran
Posts: 1920
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Curves workbench

Post by saso »

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
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Post by Vincent B »

or using datum points. ;)
Attachments
middleSection_3.FCStd
(23.33 KiB) Downloaded 92 times
Post Reply