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

Re: Curves workbench

Post by Vincent B »

Perfect like this ;)
Attachments
Surface2Make3.FCStd
(626.14 KiB) Downloaded 61 times
Capture.JPG
Capture.JPG (76.93 KiB) Viewed 2004 times
drmacro
Veteran
Posts: 8982
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves workbench

Post by drmacro »

Could someone give me a step by step on using snapping in create freehand bspline tool?

It is eluding me.

I'm attempting to snap the mid vertex of a new bspline on a profile (the profile happens to be in a sketch).

I get the bspline point moving at a distance to the cursor, and the report view keep repeating "snapping to none".

:roll:

Edit: Got it! select the vertex of the spline, and ctrl-click the target vertex (or edge) and THEN hit s. Duh. :oops:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
drmacro
Veteran
Posts: 8982
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves workbench

Post by drmacro »

Sooo...when I open this file the following is displayed:

Code: Select all

Traceback (most recent call last):
  File "/home/mac/.FreeCAD/Mod/Curves/freecad/Curves/Discretize.py", line 219, in __setstate__
    self.obj = FreeCAD.ActiveDocument.getObject(state["name"])
<class 'KeyError'>: ('name',)
08:52:14  Traceback (most recent call last):
  File "/home/mac/.FreeCAD/Mod/Curves/freecad/Curves/Discretize.py", line 219, in __setstate__
    self.obj = FreeCAD.ActiveDocument.getObject(state["name"])
<class 'KeyError'>: ('name',)
08:52:14  SketchObject::onChanged(): Unmanaged change of Constraint Property results in invalid constraint indices
And, before or after deleting the broken Gordon surface I can't select the line circles in red:
CantSelect-annot.png
CantSelect-annot.png (92.42 KiB) Viewed 1940 times
Attachments
In and out garbage_OOTB-1.FCStd
(27.62 KiB) Downloaded 51 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Chris_G
Veteran
Posts: 2598
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

drmacro wrote: Mon Jun 07, 2021 1:00 pm Sooo...when I open this file the following is displayed:

Code: Select all

Traceback (most recent call last):
  File "/home/mac/.FreeCAD/Mod/Curves/freecad/Curves/Discretize.py", line 219, in __setstate__
    self.obj = FreeCAD.ActiveDocument.getObject(state["name"])
<class 'KeyError'>: ('name',)
...
Did you update the workbench recently ? This should not appear with current version.
drmacro wrote: Mon Jun 07, 2021 1:00 pm And, before or after deleting the broken Gordon surface I can't select the line circles in red:
CantSelect-annot.png
In the View Properties, "Selectable" is set to False for this curve.
drmacro
Veteran
Posts: 8982
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves workbench

Post by drmacro »

Chris_G wrote: Mon Jun 07, 2021 3:29 pm ...

Did you update the workbench recently ? This should not appear with current version.
Addon Mangler says it's up to date (Note: this on local built 0.20 master...if that makes a difference.)

...
In the View Properties, "Selectable" is set to False for this curve.
Ok...but, I created this spline. I didn't set it that way.

Is it possible that it got toggled some how when I was attempting figure out how to use the 's' snap keyboard shortcut?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
drmacro
Veteran
Posts: 8982
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves workbench

Post by drmacro »

What does this mean? (Same file after some addition splines, but no change to the discretized lines.)

Code: Select all

PropertyPythonObject::toString(): failed for <class 'freecad.Curves.Discretize.Discretization'>
11:54:16  Traceback (most recent call last):
  File "/home/mac/.FreeCAD/Mod/Curves/freecad/Curves/Discretize.py", line 213, in __getstate__
    out = {"name": self.obj.Name,
<class 'AttributeError'>: 'Discretization' object has no attribute 'obj'
11:54:16  PropertyPythonObject::toString(): failed for <class 'freecad.Curves.Discretize.Discretization'>
11:54:16  Traceback (most recent call last):
  File "/home/mac/.FreeCAD/Mod/Curves/freecad/Curves/Discretize.py", line 213, in __getstate__
    out = {"name": self.obj.Name,
<class 'AttributeError'>: 'Discretization' object has no attribute 'obj'
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Chris_G
Veteran
Posts: 2598
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

drmacro wrote: Mon Jun 07, 2021 3:37 pm Is it possible that it got toggled some how when I was attempting figure out how to use the 's' snap keyboard shortcut?
The Selectable property is toggled when entering / leaving edit mode.
So I suppose it may stay to False, if edit mode is not (or improperly) exited.
drmacro wrote: Mon Jun 07, 2021 3:56 pm What does this mean? (Same file after some addition splines, but no change to the discretized lines.)
....
It definitely means that the workbench is not up-to-date.
Maybe you can uninstall / re-install ?
drmacro
Veteran
Posts: 8982
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves workbench

Post by drmacro »

Thanks!

Looks like uninstall/re-install fixed it.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Petrikas
Posts: 122
Joined: Sat Dec 05, 2020 8:05 pm

Re: Curves workbench

Post by Petrikas »

Chris_G wrote: Mon May 17, 2021 7:52 pm Maybe with Surface.Filling ?

pipe3.png

But I suppose you want to turn it into a solid with thickness ... that's where it fails unfortunately.
I am sorry for the slight off-topic. But I've spent a few hours, scratching my head how you got that smooth surface. If I delete your surface.filling and make my own, I can't get it to be continuos, even with the non-boundary edge added.

I noticed that the surfaces you made had different Boundary Faces and Boundary Order.

Yours
sc 2021-06-14 23_16_57.jpg
sc 2021-06-14 23_16_57.jpg (24.24 KiB) Viewed 1696 times
Mine
sc 2021-06-14 23_17_49.jpg
sc 2021-06-14 23_17_49.jpg (21.53 KiB) Viewed 1696 times
But I don't seem to be able to edit those (I get a hard crash)

Please help?
I sometimes make FreeCAD Tutorials | VertUI | MidnightUI
User avatar
Chris_G
Veteran
Posts: 2598
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

In the Surface.Filling UI, in the list of boundary edges, you can double-click an edge to choose its attached face and G1 continuity.
Post Reply