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!
Post Reply
pointdee
Posts: 15
Joined: Wed Oct 24, 2018 8:36 pm

Re: Curved Shapes Workbench

Post by pointdee »

Thanks for this Chris and apologies for not trying this sooner (the job I needed it for didn't happen so it dropped off my radar)

I've just tried to use this using my sample attached. I select Sketch001 then Sketch003, click on the CurvedPathArray tool and I get a new CurvedPathArray created although this has an exclamation mark. The Report View has the following information

Part::FeaturePython / CurvedPathArray001: Links go out of the allowed scope
Traceback (most recent call last):
File "/home/user/.FreeCAD/Mod/CurvedShapes/CurvedPathArray.py", line 167, in execute
self.makeRibs(prop)
File "/home/user/.FreeCAD/Mod/CurvedShapes/CurvedPathArray.py", line 98, in makeRibs
plen += (maxlen - obj.OffsetStart - obj.OffsetEnd) * n / (obj.Items - 1)
<class 'TypeError'>: Base.Quantity and int cannot be mixed in Quantity.__sub__.
Make sure to use matching types.

FreeCAD info is as follows

OS: openSUSE Leap 15.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Release
Python version: 3.6.5
Qt version: 5.9.7
Coin version: 3.1.3
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
Attachments
CurvedShape.FCStd
(9.21 KiB) Downloaded 73 times
User avatar
christi
Posts: 213
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

pointdee wrote: Sat May 16, 2020 4:33 pm !
I have fixed a bug. You can update the workbench and try again.

If you want to use Sketch002 as a hullcurve, add a bottom line to the sketch - connect the open ends of the spline with a line.
To get the scaling for all array intems, set Scale X and Scale Y to false.
pointdee
Posts: 15
Joined: Wed Oct 24, 2018 8:36 pm

Re: Curved Shapes Workbench

Post by pointdee »

I've updated and tried again but basically get the same error message

Part::FeaturePython / CurvedPathArray: Links go out of the allowed scope
Traceback (most recent call last):
File "/home/user/.FreeCAD/Mod/CurvedShapes/CurvedPathArray.py", line 170, in execute
self.makeRibs(prop)
File "/home/user/.FreeCAD/Mod/CurvedShapes/CurvedPathArray.py", line 99, in makeRibs
plen += (maxlen - obj.OffsetStart - obj.OffsetEnd) * n / (obj.Items - 1)
<class 'TypeError'>: Base.Quantity and int cannot be mixed in Quantity.__sub__.
Make sure to use matching types.

The line numbers in the error message are different to before so I guess this means I'm using the newer version.

All I've done is select Sketch001 then Sketch003 and clicked the CurvedPathArray button

Thanks again
User avatar
roerich_64
Veteran
Posts: 1465
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

Re: Curved Shapes Workbench

Post by roerich_64 »

Hi Paul,

i have correct your sketches a little bit and played with the items. Now:
CS_I.jpg
CS_I.jpg (53.79 KiB) Viewed 2702 times
CS_I.FCStd
(110.47 KiB) Downloaded 77 times
Have fun,
Walter
Die Liebe wird siegen, denn sie ist unzerstörbar :) ;)
User avatar
christi
Posts: 213
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

pointdee wrote: Fri May 29, 2020 11:49 am I've updated and tried again but basically get the same error message
The error occured in version 0.18. I was working with 0.19 - no problems there. I made a small change, now it also works in V 0.18. Please update again.
pointdee
Posts: 15
Joined: Wed Oct 24, 2018 8:36 pm

Re: Curved Shapes Workbench

Post by pointdee »

The error occured in version 0.18. I was working with 0.19 - no problems there. I made a small change, now it also works in V 0.18. Please update again.
Works for me now. Thanks for your tools and your persistence
Seagul
Posts: 1
Joined: Thu Jun 04, 2020 11:04 am

Re: Curved Shapes Workbench

Post by Seagul »

I have tried several times to install this workbench, each time addon manager shows that it is installed but it does not show in the drop down list.
Any suggestions?
User avatar
christi
Posts: 213
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

Seagul wrote: Fri Jun 12, 2020 7:24 am I have tried several times to install this workbench, each time addon manager shows that it is installed but it does not show in the drop down list.
Any suggestions?
Are there any error messages in the report view ?
User avatar
Vincent B
Veteran
Posts: 4741
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curved Shapes Workbench

Post by Vincent B »

Hi,
I'm trying to trim a surface with CurvedArray. Two things I can't understand:
1. The surface carried out is downed, but should it be? (red arrow)
2. The surface seems not follow the mandatory boundaries. Where the surface should be empty, it's be present and vice versa (blue arrows)
:roll:
Attachments
Capture.JPG
Capture.JPG (27.28 KiB) Viewed 2504 times
cut_surface.FCStd
(227.94 KiB) Downloaded 68 times
User avatar
christi
Posts: 213
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Curved Shapes Workbench

Post by christi »

GlouGlou wrote: Sat Jun 20, 2020 9:14 am 1. The surface carried out is downed, but should it be? (red arrow)
Both hullcurves are in the XY plane. There is no extension into the Z direction. This is why the Curved Array tool does not do shiftings in the Z direction. You can add an additional sketch with a straight line that connects the two other hullcurves. This will do the up shifting.
GlouGlou wrote: Sat Jun 20, 2020 9:14 am 2. The surface seems not follow the mandatory boundaries. Where the surface should be empty, it's be present and vice versa (blue arrows)
If you select the view from top, you can see how the array elements are arranged between the hullcurves. The surface follows exactly the mandatory boundaries, but maybe this is not what you expect.
Post Reply