B-Spline path array with defined spacing
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
B-Spline path array with defined spacing
Hi
I'm trying to create an array of parts that follow the path of a b-spline. I would like the parts to be precisely spaced along the length of the b-spline and not necessarily be equidistant.
Using the path array is the closest I have got to achieving this but the array turns out to be oriented differently from the initial part's orientation and none of the placement modifiers can remedy this. Additionally, I cannot see a way to adjust the spacing between the individual parts of the array.
If anyone can suggest a solution to this it would be greatly appreciated. Thank you!
I'm trying to create an array of parts that follow the path of a b-spline. I would like the parts to be precisely spaced along the length of the b-spline and not necessarily be equidistant.
Using the path array is the closest I have got to achieving this but the array turns out to be oriented differently from the initial part's orientation and none of the placement modifiers can remedy this. Additionally, I cannot see a way to adjust the spacing between the individual parts of the array.
If anyone can suggest a solution to this it would be greatly appreciated. Thank you!
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: B-Spline path array with defined spacing
Instead of an array it might be better to make as many draft clones of the object as needed and attach each in turn to the bspline. Adjust the map path parameter (a value between 0.0 and 1.0) to place each at its desired location along the bspline. Apply the attachment offset properties, such as rotation and offset, to each clone to align it as desired. Perhaps if you attach your file it would help to understand better what you try to do.
Re: B-Spline path array with defined spacing
I rarely recommend using a spreadsheet to new users but this might be the best approach. You can have full view of each parts properties all in list form. Using 0.19 could also be useful with it's ease of linking abilities.
Re: B-Spline path array with defined spacing
The pad object and the b-spline path I would like to distribute it along
Result via path array with align set to false
Result with align set to true
Result via path array with align set to false
Result with align set to true
- Attachments
-
- path_file.FCStd
- (10.37 KiB) Downloaded 7 times
Re: B-Spline path array with defined spacing
How would you suggest that I attatch the object to the b-spline? Currently i am using sketcher/part design and when I attempt to 'fix a point onto an object', the b-spline, I am met with these error messagesTheMarkster wrote: ↑Mon Mar 30, 2020 11:17 pm Instead of an array it might be better to make as many draft clones of the object as needed and attach each in turn to the bspline. Adjust the map path parameter (a value between 0.0 and 1.0) to place each at its desired location along the bspline. Apply the attachment offset properties, such as rotation and offset, to each clone to align it as desired. Perhaps if you attach your file it would help to understand better what you try to do.
Re: B-Spline path array with defined spacing
Thanks for the tip. I'll look into spreadsheets.
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: B-Spline path array with defined spacing
- Attachments
-
- path_file_v2.FCStd
- (23.74 KiB) Downloaded 10 times
Re: B-Spline path array with defined spacing
I have never done this before. It appears the "map path" is a distance down the path. It will be interesting if this satisfies the OP. Nice!
- Attachments
-
- map22.JPG (36.29 KiB) Viewed 643 times
Re: B-Spline path array with defined spacing
Thanks for your help!
I'm not really sure how you attached the pad object to the B-Spline. Could you elaborate on that please? Whenever I try this I get those error messages that I posted above.
In the solution your provided (thank you very much!), from what I can see, when using this method you are unable to adjust the orientation of the pad object to meet my specifications. The object needs to be oriented like it is in the first image I provided (top down view). As far as the placement of the object on the spline, I am only able to adjust the map path parameter from 0-1 with 2 digits of precision. In order to accomplish my task I would require 3 digits of precision (0.115 for example). Ideally a solution that could, for example, allow me to place one pad object 60mm down the length of the spline (I can move towards arcs or a single arc if I have to) and another 80mm would be the best for my uses.
Thank you very much for any assistance you can provide!