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

Re: Curves workbench

Post by Chris_G »

Hi all,
hammax wrote: Fri Aug 10, 2018 9:10 am If your feature for 3D-BSplines would work, maybe "some people" would be happy.
UR_ wrote: Fri Aug 10, 2018 3:30 pm I have a little feature request:
Would something like this be hard to implement :?:
If one will have lots of Sketches linked to lots of Profiles, they are really hard to maintain, especially if there are only small differences between the involved shapes.
I don't have much free time these days, but I will put this on the todo list :
- Parametric BSpline curve interpolating a group of vertexes
- make the Pipeshell_profile tool able to work with document objects (currently it works only with list of edges )
freecad-heini-1 wrote: Wed Aug 22, 2018 9:20 am Hi Chris_G,
I have also a feature request, it concerns the possibility to snap to imported point cloud and create a bspline out of the points.
...
I wish to have a 3D spline to select and snap points in 3d view and create a bspline out of the points.
If I make a 3D BSpline interpolating curve first, then we would only need a little tool to convert a point cloud to vertex cloud object.
This one should be easy.
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Curves workbench

Post by UR_ »

Chris_G wrote: Wed Aug 22, 2018 1:41 pm I don't have much free time these days
There's really no need to hurry :D
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Curves workbench

Post by wmayer »

... then we would only need a little tool to convert a point cloud to vertex cloud object.
https://forum.freecadweb.org/viewtopic.php?f=22&t=30447
User avatar
Chris_G
Veteran
Posts: 2601
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

Perfect. Thanks !
freecad-heini-1
Veteran
Posts: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: Curves workbench

Post by freecad-heini-1 »

Whow, that is great. Thank you so much Werner.

@Chris_G, no problem if you have not time. I can wait.
User avatar
Chris_G
Veteran
Posts: 2601
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

I added a new tool to CurvesWB.
It is a sublink editor (icon above the mouse pointer).
sublink-editor.jpg
sublink-editor.jpg (20.57 KiB) Viewed 2184 times

Some parametric objects use "PropertyLinkSub" and "PropertyLinkSubList" properties to link to a subshape (Vertex, Edge, Face) or a list of subshapes.
These 2 types of properties don't appear in the Property View. I had no way to change them ( except with python console ).

How to use:
- select an object (that has sublink properties) in the Tree View
- activate sublink editor
- a widget appears with the list of sublink properties, and the selected object disappears (to have clearer view of the subshapes)
- the View button temporarily shows the current link
- select another subshape and push the set button to change the property.
- Quit to apply the changes

It may also be useful to fix a toponaming issue.

You can try on the Ruled surface of the attached file :
Attachments
test_sublinkeditor.fcstd
(10.04 KiB) Downloaded 72 times
freecad-heini-1
Veteran
Posts: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: Curves workbench

Post by freecad-heini-1 »

Chris_G wrote: Mon Aug 27, 2018 10:11 am I added a new tool to CurvesWB.
It is a sublink editor (icon above the mouse pointer).
sublink-editor.jpg

How to use:
- select an object (that has sublink properties) in the Tree View (Yes)
- activate sublink editor (Yes)
- a widget appears with the list of sublink properties, and the selected object disappears (to have clearer view of the subshapes) (nothing happens in my system, please see below.)
- the View button temporarily shows the current link
- select another subshape and push the set button to change the property.
- Quit to apply the changes

It may also be useful to fix a toponaming issue.

You can try on the Ruled surface of the attached file :

Code: Select all

OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14448 (Git)
Build type: None
Branch: master
Hash: 561be08211c21bcae5b8e3c6f2dbc7b09306da21
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
User avatar
Chris_G
Veteran
Posts: 2601
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

freecad-heini-1 wrote: Mon Aug 27, 2018 5:11 pm - a widget appears with the list of sublink properties, and the selected object disappears (to have clearer view of the subshapes) (nothing happens in my system, please see below.)
Hi,
Thanks for testing.
Any message in the report view ?
On what kind of object did you try (the ruled surface of the attached file, or something else) ?
We are running the same system, so that's pretty strange.
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Curves workbench

Post by TheMarkster »

When I try to load the workbench using one of the python3 / qt5 conda builds I get this error message in the report view:

name 'reload' is not defined
Traceback (most recent call last):
File "<string>", line 46, in Initialize
File "C:\Users\mwganson\AppData\Roaming\FreeCAD\Mod\Curves\ZebraTool.py", line 7, in <module>
reload(Zebra_Gui)


And a window pops up saying something about loading the workbench failure, name 'reload' is not defined. None of the toolbar icons come up. Neither does the Curves menu.

Edit, forgot the info:

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14426 (Git)
Build type: Release
Branch: master
Hash: 3927a2ed8b009ab4dfdca53fbebf0060193b67b4
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

2nd edit:

After uninstalling the workbench, then reinstalling to get the new feature, I get this error:

Missing parentheses in call to 'print'. Did you mean print('accept and resetEdit')? (sublink_edit.py, line 103)
Traceback (most recent call last):
File "<string>", line 65, in Initialize

By the way, in the following version of FreeCAD, the sublink editor seems to work just fine using the ruled surface as the test object:

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14434 (Git)
Build type: Release
Branch: master
Hash: 24579fff32a2277ac7f0f9e0f82a2fc9618fd544
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Curves workbench

Post by Jee-Bee »

First time you use python 3 and for python 3 reload see
https://stackoverflow.com/questions/182 ... ort-object


For the second i think it's weird rhat it complaint about parentheses since also that is python 3
Post Reply