Curved Shapes Workbench

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
christi
Posts: 208
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

GlouGlou wrote: Thu Jun 24, 2021 9:14 pm maybe an option to give the size of hull for scale factor instead the bounding box of the whole hull curves could avoid that?
I think this will make my tool too complicated
User avatar
miniellipse
Posts: 101
Joined: Tue Apr 24, 2018 9:09 pm

Re: Curved Shapes Workbench python errors

Post by miniellipse »

I updated fcad on my mac and when I load an example file from the forum, I get this errors in report view:

10:18:40 Traceback (most recent call last):
File "/Users/ADMacMini/Library/Preferences/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 196, in onChanged
self.execute(fp)
File "/Users/ADMacMini/Library/Preferences/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 179, in execute
self.makeRibs(prop)
File "/Users/ADMacMini/Library/Preferences/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 93, in makeRibs
d = CurvedShapes.distribute(x / (sections - 1), obj.Distribution, obj.DistributionReverse)
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'Distribution'
10:18:40 Traceback (most recent call last):
File "/Users/ADMacMini/Library/Preferences/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 196, in onChanged
self.execute(fp)
File "/Users/ADMacMini/Library/Preferences/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 179, in execute
self.makeRibs(prop)
File "/Users/ADMacMini/Library/Preferences/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 93, in makeRibs
d = CurvedShapes.distribute(x / (sections - 1), obj.Distribution, obj.DistributionReverse)
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'Distribution'
10:18:40 Traceback (most recent call last):
File "/Users/ADMacMini/Library/Preferences/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 196, in onChanged
self.execute(fp)
File "/Users/ADMacMini/Library/Preferences/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 179, in execute
self.makeRibs(prop)
File "/Users/ADMacMini/Library/Preferences/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 93, in makeRibs
d = CurvedShapes.distribute(x / (sections - 1), obj.Distribution, obj.DistributionReverse)
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'Distribution'

Any help is appreciated.

OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24366 (Git)
Build type: Release
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: C/Default (C)
Attachments
Sirius_2009-Wing.FCStd
(362.66 KiB) Downloaded 61 times
User avatar
Vincent B
Veteran
Posts: 4731
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curved Shapes Workbench

Post by Vincent B »

Could be like this or something looks like. :)
Attachments
Sirius_2009-Wing_vb.FCStd
(262.41 KiB) Downloaded 61 times
User avatar
miniellipse
Posts: 101
Joined: Tue Apr 24, 2018 9:09 pm

Re: Curved Shapes Workbench

Post by miniellipse »

Vincent B wrote: Mon Mar 28, 2022 5:34 pm Could be like this or something looks like. :)
Ha ha.. I thought by now, you would have finished this plane. I am trying to learn somethings but I upgraded my home computer to OSX Monterey and now I have issues with the Curves WB. I got these same errors when I opened your new Sirius_2009-Wing_vb file. I really think the system upgrade broke/changed some python things but I do not know how to fix. :x
Screen Shot 2022-03-28 at 8.16.55 PM.png
Screen Shot 2022-03-28 at 8.16.55 PM.png (69.21 KiB) Viewed 3138 times
User avatar
bntarc
Posts: 51
Joined: Thu Apr 12, 2018 4:30 pm
Location: Illinois USA
Contact:

Re: Curved Shapes Workbench

Post by bntarc »

Thank you so much christi for the Notch Tool.

I have difficulties using it.
When I do the Notch the parts turn 90 degres............
Attachments
Notch test Link before.FCStd
(4.78 KiB) Downloaded 55 times
Notch test Link after.FCStd
(10.11 KiB) Downloaded 54 times
Before Notch.png
Before Notch.png (7.78 KiB) Viewed 3040 times
After Notch.png
After Notch.png (8.55 KiB) Viewed 3040 times
User avatar
christi
Posts: 208
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench python errors

Post by christi »

miniellipse wrote: Sat Mar 26, 2022 5:37 pm I updated fcad on my mac and when I load an example file from the forum, I get this errors in report view:
...
Your design was created with an older version of the CurvedShapes workbench. Delete and re-create the Curved Array parts to get them updated.
User avatar
christi
Posts: 208
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

bntarc wrote: Mon Apr 04, 2022 8:14 pm Thank you so much christi for the Notch Tool.

I have difficulties using it.
When I do the Notch the parts turn 90 degres............
It seems that the algorithm to find out the cut direction does not work. Since I have not found a solution for this, you can manually change the parameter Cut Direction in your design. Set Cut Direction to 0,0,1 for the first NotchConnector and 0,0,-1 for the second. Enter the z value first, because 0,0,0 will again evaluate to the wrong values.
User avatar
christi
Posts: 208
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

bntarc wrote: Mon Apr 04, 2022 8:14 pm Thank you so much christi for the Notch Tool.

I have difficulties using it.
When I do the Notch the parts turn 90 degres............
I found a better solution for the CutDirection finding algorithm. Please update the workbench and try again.
Zivatar
Posts: 23
Joined: Thu Nov 12, 2020 5:31 pm

Re: Curved Shapes Workbench python errors

Post by Zivatar »

christi wrote: Sun Apr 10, 2022 6:35 am
miniellipse wrote: Sat Mar 26, 2022 5:37 pm I updated fcad on my mac and when I load an example file from the forum, I get this errors in report view:
...
Your design was created with an older version of the CurvedShapes workbench. Delete and re-create the Curved Array parts to get them updated.
Hello Guys,
I am experiencing the same like miniellipse, but with a freshly updated system and .AppImage:

Code: Select all

OS: openSUSE Leap 15.3 (GNOME/default)
Word size of FreeCAD: 64-bit
Version: 0.20.28647 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 1c1743b)
Hash: 1c1743b67d209f2b6501de4f75645a33b69d1c31
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: Hungarian/Hungary (hu_HU)
Installed mods: 
  * Plot
  * Curves 0.4.2
  * MeshRemodel 1.8919.0
  * fasteners 0.3.40
  * CurvedShapes 1.0.2
  * Silk -1861983584.0.0
  * sheetmetal 0.2.49
  * AirPlaneDesign 0.4.0
  * Assembly4 0.11.10
  * Manipulator 1.4.3
My design is this
Test2.FCStd
(14.92 KiB) Downloaded 54 times
, and the Report view says:

Code: Select all

14:55:44  Traceback (most recent call last):
  File "/home/zivatarw/.local/share/FreeCAD/Mod/CurvedShapes/./CurvedArray.py", line 196, in onChanged
    self.execute(fp)
  File "/home/zivatarw/.local/share/FreeCAD/Mod/CurvedShapes/./CurvedArray.py", line 179, in execute
    self.makeRibs(prop)
  File "/home/zivatarw/.local/share/FreeCAD/Mod/CurvedShapes/./CurvedArray.py", line 114, in makeRibs
    if (obj.Surface or obj.Solid) and obj.Items > 1:
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'Surface'
14:55:44  16Standard_Failure Need at least two vertices, edges or wires to create loft face
14:55:44  Creation of surface is not possible !
14:55:44  <Part> ViewProviderExt.cpp(1268): Cannot compute Inventor representation for the shape of Test2#CurvedArray: Bnd_Box is void
14:55:44  16Standard_Failure Need at least two vertices, edges or wires to create loft face
14:55:44  Creation of surface is not possible !
14:55:44  <Part> ViewProviderExt.cpp(1268): Cannot compute Inventor representation for the shape of Test2#CurvedArray: Bnd_Box is void
Can anyone help what could be the problem? The CurvedArray object looks like no problem at all, but I cant use the model for further work.

Thanks,
Zivatar
Zivatar
Posts: 23
Joined: Thu Nov 12, 2020 5:31 pm

Re: Curved Shapes Workbench

Post by Zivatar »

Meanwhile I carried out a different test:
Symptoms are the same on a different fresh system.
KR,
Zivatar
Post Reply