Objects Along a Path

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
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Objects Along a Path

Post by wandererfan »

While catching up, I saw this post: viewtopic.php?f=3&t=4269&p=33415

I put together something that distributes document objects along a wire:

Image

If there is any interest, I'll clean it up and submit some code. "Draft.makePathArray"?

wf
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Objects Along a Path

Post by NormandC »

There would certainly be an interest. Would you be able to set some parameters like parallel and normal to the path? Would those objects be 2D or 3D?
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Objects Along a Path

Post by wandererfan »

normandc wrote:There would certainly be an interest. Would you be able to set some parameters like parallel and normal to the path? Would those objects be 2D or 3D?
I like the idea of a parallel/normal parameter. I don't know how to do it, but I like it.

If the path is 2D the result is 2D, if the path is 3D the result is 3D.

wf
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Objects Along a Path

Post by NormandC »

What I meant was, could the objects being distributed along the path be 3D shapes as well as 2D?
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Objects Along a Path

Post by wandererfan »

normandc wrote:What I meant was, could the objects being distributed along the path be 3D shapes as well as 2D?
Oh, sorry. The red ones in the picture are Part.Sphere. Should work with any shape.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Objects Along a Path

Post by NormandC »

Thanks, that would be really useful.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Objects Along a Path

Post by triplus »

Just one question i have "3D path" this is something only achievable from python console for now? About the possibility to position objects along the path from GUI yes that would be nice.
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Objects Along a Path

Post by wandererfan »

triplus wrote:Just one question i have "3D path" this is something only achievable from python console for now? About the possibility to position objects along the path from GUI yes that would be nice.
Script/console to start. Gui tool could be done - select an object, select some edges, push the button.

wf
Post Reply