Curved Shapes Workbench
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: Curved Shapes Workbench
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)
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
Re: Curved Shapes Workbench
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.
Re: Curved Shapes Workbench
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
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
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Re: Curved Shapes Workbench
Hi Paul,
i have correct your sketches a little bit and played with the items. Now: Have fun,
Walter
i have correct your sketches a little bit and played with the items. Now: Have fun,
Walter
Die Liebe wird siegen, denn sie ist unzerstörbar
Re: Curved Shapes Workbench
Works for me now. Thanks for your tools and your persistenceThe 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.
Re: Curved Shapes Workbench
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?
Any suggestions?
Re: Curved Shapes Workbench
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)
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)
- Attachments
-
- Capture.JPG (27.28 KiB) Viewed 2504 times
-
- cut_surface.FCStd
- (227.94 KiB) Downloaded 68 times
Re: Curved Shapes Workbench
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.
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.